Skip to content

Implement key as an optional callback to retrieve the key #1

@cantidio

Description

@cantidio

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

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions