Created
November 18, 2016 17:24
-
-
Save WebBamboo/45ebce0f5e8bfd8cc5cdd8b427b9f30b to your computer and use it in GitHub Desktop.
Loop through JS object
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
for (var key in p) { | |
if (p.hasOwnProperty(key)) { | |
console.log(key + " -> " + p[key]); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment