Created
March 13, 2016 16:19
-
-
Save tcelestino/9aa7c94b0fb96efae576 to your computer and use it in GitHub Desktop.
get all data localStorage
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
var i = 0, | |
oJson = {}, | |
sKey; | |
for (; sKey = window.localStorage.key(i); i++) { | |
oJson[sKey] = window.localStorage.getItem(sKey); | |
} | |
console.log(oJson); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment