/random-obj-prop

Get a random property from an object

Primary LanguageJavaScriptMIT LicenseMIT

random-obj-prop

Get a random property from an object

Install

$ npm install random-obj-prop

Usage

import randomObjectProperty from 'random-obj-prop';

randomObjectProperty({foo: '🐴', bar: '🦄'});
//=> '🦄'

Related