Comment vérifier LocalStorage non défini

if (localStorage.getItem("someName") === null) {
 // your code
}
Indonesia People