Skip to content

Instantly share code, notes, and snippets.

@ajmeese7
Created April 9, 2020 19:25
Show Gist options
  • Save ajmeese7/6fcceb99fd459a5a99133ba3f6d9499c to your computer and use it in GitHub Desktop.
Save ajmeese7/6fcceb99fd459a5a99133ba3f6d9499c to your computer and use it in GitHub Desktop.
I'm always needing to do this, so now I can find it easily
var keys = Object.keys(localStorage), i = 0, key;
for (; key = keys[i]; i++) {
console.log( key + '=' + localStorage.getItem(key));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment