random-object-value
v4.0.0
Published
Get a random value from an object
Downloads
12
Maintainers
Readme
random-object-value
Get a random value from an object
Install
npm install random-object-value
Usage
import randomObjectValue from 'random-object-value';
randomObjectValue({foo: '🐴', bar: '🦄'});
//=> '🦄'
Related
- random-object-key - Get a random key from an object
- random-int - Generate a random integer
- random-float - Generate a random float
- random-item - Get a random item from an array
- unique-random - Generate random numbers that are consecutively unique
- unique-random-array - Get consecutively unique elements from an array
- crypto-random-string - Generate a cryptographically strong random string