Answers for "to check if a key is in the local storage with js"

5

local storage check if key exists

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

Code answers related to "to check if a key is in the local storage with js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language