Converts an array of items with ids and parent ids to a nested tree in a performant O(n) way. Runs in browsers and Node.js.
nodejs
javascript
tree
typescript
data-structures
tree-structure
traverse
algorithms-implemented
array-manipulations
array-helper
array-utils
nested-loops
-
Updated
Apr 10, 2022 - TypeScript