Created
January 30, 2013 19:56
-
-
Save namklabs/4676269 to your computer and use it in GitHub Desktop.
list all properties of a JavaScript 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 x){ | |
document.write( key + ": " + x[key] + "<br>" ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment