random-obj-prop
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

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

Package Sidebar

Install

npm i random-obj-prop

Weekly Downloads

26

Version

3.0.0

License

MIT

Unpacked Size

3.32 kB

Total Files

5

Last publish

Collaborators

  • sindresorhus