Search results
202 packages found
Recursively flatten an array or arrays.
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
Set an array of unique values as the property of an object. Supports setting deeply nested properties using using object-paths/dot notation.
Returns true if a value exists, false if empty. Works with deeply nested values using object paths.
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
Safely get deep nested properties using dot notation
A collection of functions to enhance array manipulation, such as sorting, filtering, mapping, and reducing.
- array
- filter
- sort
- map
- reduce
- manipulation
- grep
- mergeSort
- collection
- utils
- enhance
- handle
- callback
- function
- View more
Flexible and powerful JSON pattern validation library with support for complex, nested structures, array validation, and a wide range of validation patterns. Includes logical operators and strict/nullable types.
A module to sort a JSON array.
ForEachOf is a utility function similiar to the idea of Array.prototype.forEach method executing a callback function on each element of an array, but in this case in a flattening manner, so you could have an infinite levels of nesting and it will go throu
Pattern matching library
- array
- condition
- match
- matching
- object
- pattern
- pattern-matching
- predicate
- string
- regex
- regular expression
- nested
- deep
- recursive
Quickly pack a nested 2D array into a typed array – useful for flattening point data into a WebGL-friendly format
Provides nested objects from tabular data.
Convert a plain array of nodes (with pointers to parent nodes) to a tree
Deep sort an object, no matter what the contents are.
Turns an array of arrays of data into a nested tree of plain objects
Sort array of arrays by column, rippling the sorting outwards from that column
Sort an array of objects by one or more properties in any order. Multiple properties and custom comparison functions can be used.
- arr
- array
- asc
- ascend
- ascending
- desc
- descend
- descending
- multiple
- nested
- order
- ordered
- orderby
- orderbydescending
- View more
Merge and flatten any arrays found in all values within plain objects