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