Answers for "how to get all values in localstorage"

4

get localstorage

function get(){
    var getJson = localStorage.getItem('key')
    if(getJson){
        arrayName = JSON.parse(getJson)
    }
}
Posted by: Guest on October-07-2020
0

localstorage read all key

for (var key in localStorage){
   console.log(key)
}
Posted by: Guest on October-24-2020

Code answers related to "how to get all values in localstorage"

Code answers related to "Javascript"

Browse Popular Code Answers by Language