Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Explode an object to the console
function logObject(o, indent) {
var keys;
indent = indent || '';
try {
keys = Object.keys(o);
} catch (e) {
console.log(indent + '=' + o.toString());
return;
}
keys.forEach(function(k) {
console.log(indent + k);
findUndefs(o[k], indent + ' ');
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment