Skip to content

Instantly share code, notes, and snippets.

@lpalli
Created September 10, 2011 06:30
Show Gist options
  • Save lpalli/1208015 to your computer and use it in GitHub Desktop.
Save lpalli/1208015 to your computer and use it in GitHub Desktop.
JavaScript debug
function debugObject( obj ) {
var output = '';
for (property in obj) {
output += property + ': ' + obj[property]+';\n';
}
alert(output);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment