Search results
1000+ packages found
Sort by: Default
- Default
- Most downloaded this week
- Most downloaded this month
- Most dependents
- Recently published
Convert a plain array of nodes (with pointers to parent nodes) to a tree
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.
- array to tree
- list to tree
- unflatten
- array-helper
- array-manipulations
- data-structures
- datastructures
- algorithms
- tree-structure
- array
- list
- collection
- pointer
- parent
- View more
transform flat array to tree structure
Convert a plain array of nodes (with pointers to parent nodes) to a tree
Convert large amounts of data array to tree fastly
Convert array to tree fastly, and opposite.
array to tree
array to tree ## Installation ```bash npm i @abala/arr2tree ```
filter in array tree
Make a nested tree of React components out of a flat array
Curated collection of data structures for the JavaScript/TypeScript.
- bag
- bimap
- bit array
- bit set
- bit vector
- bitset
- bk tree
- burkhard-keller tree
- cache
- circular buffer
- counter
- data structures
- default map
- deque
- View more
Walk any kind of tree structure depth- or breadth-first. Supports promises and advanced map-reduce operations with a very small API.
Array manipulation, ordering, searching, summarizing, etc.
Attach comments to estree nodes
Run an array of functions in parallel
TypeScript definitions for d3-array
Efficient Binary heap (priority queue, binary tree) data structure for JavaScript / TypeScript. Includes JavaScript methods, Python's heapq module methods, and Java's PriorityQueue methods.
An ES7/ES2016 spec-compliant `Array.prototype.includes` shim/polyfill/replacement that works as far down as ES3.
Convert array to tree structure.
ECMAScript (ESTree) AST walker