Skip to content

Instantly share code, notes, and snippets.

View atzkey's full-sized avatar
💾
Softly bytes.

atzkey

💾
Softly bytes.
View GitHub Profile
var MAX_DUMP_DEPTH = 1;
function dumpObj(obj, name, indent, depth) {
if (depth > MAX_DUMP_DEPTH) {
return indent + name + ": <Maximum Depth Reached>\n";
}
if (typeof obj == "object") {
var child = null;
var output = indent + name + "\n";
indent += "\t";