Search results
312 packages found
Structure for drawing items with specified probabilities
Sample elements from an array-like object.
- stdlib
- stdmath
- random
- rand
- mathematics
- math
- statistics
- stats
- sampling
- with replacement
- replacement
- discrete
- distribution
- urn
- View more
Yank values from a given object via a specified schema
A tiny type safe utility to sort an array of objects by a property using the values array
Highly customizable, but simple to use, sanitization of objects and primitives.
A Color picker for rgb
Easy File Picker is a straightforward library with no dependencies to upload/pick/read files in the browser.
Return a copy of the object, filtered to only have values for the whitelisted keys.
Get random elements from on array
Returns a copy of the object based on which object properties are included or excluded.
Get a random key from an object
- alea
- arr
- array
- bates
- d3-random
- distribution
- el
- element
- exponential
- fisher
- gaussian
- generate
- generate-random-numbers
- generator
- View more
- alea
- arr
- array
- bates
- d3-random
- distribution
- el
- element
- exponential
- fisher
- gaussian
- generate
- generate-random-numbers
- generator
- View more
- alea
- arr
- array
- bates
- d3-random
- distribution
- el
- element
- exponential
- fisher
- gaussian
- generate
- generate-random-numbers
- generator
- View more
- alea
- arr
- array
- bates
- d3-random
- distribution
- el
- element
- exponential
- fisher
- gaussian
- generate
- generate-random-numbers
- generator
- View more
A simple js-class to put an array into an urn and draw random items from it - with or without replacement.
Looks for a valid value in an object, iterating over a priority ordered array of keys.
Utility function to create a shallow copy of an object which is composed of the picked object properties.
Return a partial object copy excluding properties for which a predicate (function) returns a truthy value.