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

Function truncate

modules/tree/tree.js:61–66  ·  view source on GitHub ↗
(d)

Source from the content-addressed store, hash-verified

59
60 // TOO MANY CHILDREN
61 function truncate(d) {
62 if (d.children) {
63 d.children = d.children.slice(0,20);
64 d.children.forEach(truncate);
65 }
66 }
67
68 function collapse(d) {
69 if (d.children) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected