Skip to content

A collection of functional and immutable helpers for working with tree data structures.

License

Notifications You must be signed in to change notification settings

nickjohnson-dev/treecko

Repository files navigation

What is a treecko?

treecko

npm Travis Codecov

A collection of functional and immutable helpers for working with tree data structures.

  • Both Trees : Object and Tree Lists : Array<Object> are supported.
  • Curried for easy partial application.

Mapping

Reducing

Finding

Filtering

Side Effects

Flattening

Restructuring

Misc

TODO

  • Support different values for children key
  • Support different values for id key in flattenToMap and changeParent
  • Support different values for parentId key in changeParent
  • Add breadth-first versions of methods

About

A collection of functional and immutable helpers for working with tree data structures.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •