Home

Awesome

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