Search results

1000+ packages found

Convert a plain array of nodes (with pointers to parent nodes) to a tree

published version 3.3.2, 5 years ago34 dependents licensed under $MIT
71,530

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.

published version 1.11.0, 3 years ago37 dependents licensed under $MIT
132,419

transform flat array to tree structure

published version 1.0.6, 9 days ago0 dependents licensed under $ISC
118

Convert a plain array of nodes (with pointers to parent nodes) to a tree

published version 3.3.3, 3 years ago0 dependents licensed under $MIT
571

Convert large amounts of data array to tree fastly

published version 1.1.2, 4 years ago1 dependents licensed under $LGPL-3.0
47

Convert array to tree fastly, and opposite.

published version 1.0.3, 5 months ago0 dependents licensed under $MIT
45

array to tree

published version 1.0.0, 5 years ago0 dependents licensed under $MIT
10

array to tree ## Installation ```bash npm i @abala/arr2tree ```

published version 1.1.4, 4 years ago0 dependents licensed under $MIT
47

filter in array tree

published version 3.0.2, 7 months ago780 dependents licensed under $MIT
3,956,628

Make a nested tree of React components out of a flat array

published version 2.0.2, 5 months ago0 dependents licensed under $MIT
202

Curated collection of data structures for the JavaScript/TypeScript.

published version 0.40.3, 3 months ago563 dependents licensed under $MIT
18,778,589

Walk any kind of tree structure depth- or breadth-first. Supports promises and advanced map-reduce operations with a very small API.

published version 3.0.0, 3 years ago48 dependents licensed under $ISC
12,158,443

Array manipulation, ordering, searching, summarizing, etc.

published version 3.2.4, 2 years ago1861 dependents licensed under $ISC
67,195,032

Attach comments to estree nodes

published version 3.0.0, 2 years ago14 dependents licensed under $MIT
7,651,801

Run an array of functions in parallel

published version 1.2.0, 4 years ago1832 dependents licensed under $MIT
211,772,856

TypeScript definitions for d3-array

published version 3.2.1, 2 years ago152 dependents licensed under $MIT
37,380,652

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.

published version 2.6.0, 5 months ago49 dependents licensed under $BSD-3-Clause
7,630,626

An ES7/ES2016 spec-compliant `Array.prototype.includes` shim/polyfill/replacement that works as far down as ES3.

published version 3.1.8, a year ago1320 dependents licensed under $MIT
129,426,498

Convert array to tree structure.

published version 1.0.1, 5 years ago0 dependents licensed under $MIT
17

ECMAScript (ESTree) AST walker

published version 8.3.4, 8 months ago5112 dependents licensed under $MIT
205,169,212