Created
September 9, 2021 19:59
-
-
Save anupammaiti/248f6cd22cbf0bd5f88ee968c56a282a to your computer and use it in GitHub Desktop.
Print All Local Storage Data Crome
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function listAllItems(){ | |
for (i=0; i<localStorage.length; i++) | |
{ | |
key = localStorage.key(i); | |
console.log(key+":"+localStorage.getItem(key)) | |
} | |
} | |
listAllItems(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment