Skip to content

Instantly share code, notes, and snippets.

@the-dan
Created June 9, 2010 09:32
Show Gist options
  • Save the-dan/431267 to your computer and use it in GitHub Desktop.
Save the-dan/431267 to your computer and use it in GitHub Desktop.
Dump JS object
function dump(o) {
var r = "[";
for (var p in o) {
r += p + " = " + o[p] + ", ";
}
r += "]";
alert(r);
}
function dump(o) {
var r = "[";
for (var p in o) {
r += p + " = " + o[p] + ", ";
}
r += "]";
alert(r);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment