Skip to content

sindresorhus/random-object-value

Repository files navigation

random-object-value

Get a random value from an object

Install

npm install random-object-value

Usage

import randomObjectValue from 'random-object-value';

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

Related