Skip to content

sindresorhus/random-object-key

Repository files navigation

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