Search results
407 packages found
Like `await Promise.all(mytasks.map(async (item) => ....))`, but with super-powers
returns a random item in an Array
Returns a random item from an array.
Validate the type of array's items.
Recursively run callback function on each item in an array
Binary sorted array. Implements array initialization, insertion, finding index of element, item removal, clearing the array.
Removes an item from a specific position.
A utility to pick random elements from an array
Seedable random number generator supporting many common distributions.
- alea
- arr
- array
- bates
- d3-random
- distribution
- el
- element
- exponential
- fisher
- gaussian
- generate
- generate-random-numbers
- generator
- View more
Checks whether a value is an array with more than zero items
Returns an array of the non-null results of fn(item, index). This means false return values will be included.
Moves an item the array to the end of the array.
Returns a new array, where an item is inserted at a specific position.
Splits array into groups of n items each
Recursively run callback function on each item in an array
RapidOM schema validator
- rapid
- object
- model
- rapidom
- javascript
- typescript
- schema
- validation
- default
- required
- array
- min
- max
- length
- View more
Determine if an item is contained in a list.
Find duplicate item from two array
Allows to put arrays into sets. Works similarly like ES6 Sets.
Add up all the numbers in the array