SkillAgentSearch skills...

Treecko

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

Install / Use

/learn @nickjohnson-dev/Treecko
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

<img alt="What is a treecko?" width="100" height="100" src="http://vignette3.wikia.nocookie.net/pokemontowerdefense3/images/c/c1/Treecko.jpg/revision/latest?cb=20140803080131" />

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
View on GitHub
GitHub Stars32
CategoryDevelopment
Updated1y ago
Forks4

Languages

JavaScript

Security Score

80/100

Audited on Nov 12, 2024

No findings