(nodes)
| 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); |