MCPcopy Create free account
hub / github.com/BloombergGraphics/whatiscode / findMaxDepth

Function findMaxDepth

modules/tree/tree.js:76–80  ·  view source on GitHub ↗
(nodes)

Source from the content-addressed store, hash-verified

74 }
75
76 function findMaxDepth(nodes) {
77 return _.max(nodes.map(function(node, index) {
78 return node.children ? findMaxDepth(node.children) : node.depth;
79 }));
80 }
81
82 root.children = root.children.slice(45,65);
83 // truncate(root);

Callers 1

updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected