Answers for "localStorage.getItem(argument);"

4

javascript get local storage

var Item = localStorage.getItem('youritem');
Posted by: Guest on February-22-2020
1

how to get all items in localstorage

function allStorage() {

    var values = [],
        keys = Object.keys(localStorage),
        i = keys.length;

    while ( i-- ) {
        values.push( localStorage.getItem(keys[i]) );
    }

    return values;
}
Posted by: Guest on November-26-2020

Code answers related to "localStorage.getItem(argument);"

Code answers related to "Javascript"

Browse Popular Code Answers by Language