Home

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