Cómo consultar LocalStorage no establecido

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