Skip to content

Instantly share code, notes, and snippets.

function printArray (arr, depth) {
depth++;
indentLog("[", depth);
for (var index in arr) {
if (typeof(arr[index]) == "object") {
if (typeof(arr) == "object")
indentLog(index + "=> Array", depth);
else {
indentLog(arr, depth);
indentLog(index, depth);