Cómo consultar LocalStorage no establecido
if (localStorage.getItem("someName") === null) {
// your code
}
Indonesia People
if (localStorage.getItem("someName") === null) {
// your code
}