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.
-
Updated
Jun 25, 2024 - TypeScript
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.
Provide async/await callbacks for every, find, findIndex, filter, forEach, map, reduce, reduceRight and some methods in Array.
@duplojs/utils is the TypeScript utility toolbox used across the DuploJS ecosystem. It focuses on strong typing, good DX, and small composable primitives that scale from simple helpers to full validation pipelines.
🔢🔧 A set of functions for working with arrays, often necessary but absent in lodash.
A set of useful utilities that are not provided in the standard JavaScript Array
Provide interchainable array, set, map and etc supporting both normal and async callbacks as their action arguments.
Zero-dependency TypeScript utility functions that enhance JavaScript's standard library.
Add a description, image, and links to the array-utils topic page so that developers can more easily learn about it.
To associate your repository with the array-utils topic, visit your repo's landing page and select "manage topics."