Search results
103 packages found
A random weighted item chooser with custom seed option for JavaScript and TypeScript.
A utility to pick random elements from an array
Return a partial object copy containing only specified keys.
Pick all values of a property in one or more objects
Pick a random item from a weighted list.
A tiny type safe utility to sort an array of objects by a property using the values array
Return a partial object copy excluding specified keys.
Mess with the properties of deeply nested objects.
Return a partial object copy containing properties for which a predicate (function) returns a truthy value.
Get random elements from on 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
small module for randomly sampling an item in an array
Return a partial object copy excluding properties for which a predicate (function) returns a truthy value.
Given an array, pick a random element and return it.
A javascript library which adds [C# LINQ](https://docs.microsoft.com/en-us/dotnet/api/system.linq.enumerable?view=net-6.0) inspired helper methods for iterators. Supported in Node.js and web browsers.
A simple js-class to put an array into an urn and draw random items from it - with or without replacement.
common javascript utils that can be required selectively that assume es5+
Map values from one object to a new object having the same keys.
Arrays as object key paths