random-object-key
v4.0.0
Published
Get a random key from an object
Downloads
11
Maintainers
Readme
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-obj-prop - Get a random property 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