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

About

Get a random property from an object

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •