Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check if item exists in localstorage javascript

//If the given key does not exist in the list associated with the object then this method must return null.

if (localStorage.getItem("infiniteScrollEnabled") === null) {
  //...
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #item #exists #localstorage #javascript
ADD COMMENT
Topic
Name
5+2 =