collapse(d) {
    if(d.children) {
      d._children = d.children;
      d._children.forEach((d) => {this.collapseBigOnes(d)});
      d.children = null;
    }
  }
// Collapse the node and all it's children
Collapse the node and all it's children
Collapse the node and all it ' s children
collapse(d) {
    if(d.children) {
      d._children = d.children;
      d._children.forEach((d) => {this.collapseBigOnes(d)});
      d.children = null;
    }
  }
collapse ( d ) { if ( d . children ) { d . _children = d . children ; d . _children . forEach ( ( d ) => { this . collapseBigOnes ( d ) } ) ; d . children = null ; } }
Collapse the node and all it's children
Collapse the node and all it ' s children