Answers for "test if local storage key exists"

9

check if localstorage key exists

if (localStorage.getItem("username") === null) {
  //...
}
Posted by: Guest on February-28-2020

Code answers related to "test if local storage key exists"

Code answers related to "Javascript"

Browse Popular Code Answers by Language