Created
April 2, 2014 11:18
-
-
Save fazlurr/b1284562b4c40b9d1a5d to your computer and use it in GitHub Desktop.
Javascript function to show all object property
This file contains hidden or 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 items.images) { | |
| var obj = items.images[key]; | |
| for (var prop in obj) { | |
| if(obj.hasOwnProperty(prop)){ | |
| console.log(prop + " = " + obj[prop]); | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment