Get a random key from an object
npm install random-object-key
import randomObjectKey from 'random-object-key';
randomObjectKey({foo: true, bar: true});
//=> 'bar'
- random-object-value - Get a random value 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