Skip to content

Instantly share code, notes, and snippets.

@fazlurr
Created April 2, 2014 11:18
Show Gist options
  • Select an option

  • Save fazlurr/b1284562b4c40b9d1a5d to your computer and use it in GitHub Desktop.

Select an option

Save fazlurr/b1284562b4c40b9d1a5d to your computer and use it in GitHub Desktop.
Javascript function to show all object property
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