Skip to content

Instantly share code, notes, and snippets.

@lerua83
Created November 14, 2013 08:47
Show Gist options
  • Save lerua83/7463522 to your computer and use it in GitHub Desktop.
Save lerua83/7463522 to your computer and use it in GitHub Desktop.
Javascript - Loop through JavaScript object URL: http://stackoverflow.com/questions/684672/loop-through-javascript-object
for (var key in p) {
if (p.hasOwnProperty(key)) {
alert(key + " -> " + p[key]);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment