Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Loop over all keys in the local storage

let nextValue;
for (let i = 0; i < localStorage.length; i++){
    nextValue = localStorage.getItem(localStorage.key(i));
    //Do something with nextValue..
    //...
}
Source by spicyyoghurt.com #
 
PREVIOUS NEXT
Tagged: #Loop #keys #local #storage
ADD COMMENT
Topic
Name
7+6 =