Appearance
treeDepth(object) → number · Object
treeDepth(object) → number
Get the maximum nesting depth of a tree structure.
object
treeDepth({a: {b: {c: 1}}}) // 3