random-object-key
TypeScript icon, indicating that this package has built-in type declarations

4.0.0 • Public • Published

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

Package Sidebar

Install

npm i random-object-key

Weekly Downloads

1

Version

4.0.0

License

MIT

Unpacked Size

3.35 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus