3.1.0 • Published 8 years ago
treecko v3.1.0
treecko
A collection of functional and immutable helpers for working with tree data structures.
- All of the following helpers support tree objects as well as arrays of tree objects.
- All methods are curried, so you can use partial application.
- Tree nodes must have a
childrenarray.
Mapping
Reducing
Finding
Filtering
Side Effects
Flattening
Restructuring
Misc
TODO
- Support different values for
childrenkey - Support different values for
idkey inflattenToMapandchangeParent - Support different values for
parentIdkey inchangeParent - Add breadth-first versions of methods