gitmyhub

performant-array-to-tree

TypeScript ★ 1 updated 3y ago ⑂ fork

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.

No plain-English explanation yet — one is being written right now. Check back in a minute.