Skip to content

Instantly share code, notes, and snippets.

@drewdeponte
Created September 3, 2009 06:06
Show Gist options
  • Save drewdeponte/180152 to your computer and use it in GitHub Desktop.
Save drewdeponte/180152 to your computer and use it in GitHub Desktop.
function inspect(obj) {
for (prop in obj) {
console.log(typeof(obj[prop]) + " - " + prop + ": " + obj[prop]);
if ((typeof(obj[prop]) == 'object') && (obj[prop] != null)) {
inspect(obj[prop]);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment