Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check if there is data in localstorage

if (localStorage.getItem('ID') !== null) {
    console.log(` exists`);
} else {
    console.log(`not found`);
}
 
PREVIOUS NEXT
Tagged: #check #data #localstorage
ADD COMMENT
Topic
Name
6+3 =