node-tree-flatten icon indicating copy to clipboard operation
node-tree-flatten copied to clipboard

Implement key as an optional callback to retrieve the key

Open cantidio opened this issue 8 years ago • 0 comments

Right now the only way to retrieve the current tree node children is through the key argument. This argument should accept a callback that will be called with the current node-element to retrieve the children list.

flatten(tree, (node) => node.children.filter() ... ;

cantidio avatar Mar 29 '16 23:03 cantidio