Comment vérifier est la clé d'un storage local est l'emopty

if (localStorage.getItem("username") === null) {
  //...
}
Strange Starling