npm

Does your artifact manager get in the way? Join us on Oct. 8 at 10am PT, to discuss how npm can help.Sign up »

random-prop-obj

1.0.1 • Public • Published

random-prop-obj Build Status

Pick a random property value from an object

Install

npm install --save random-prop-obj

Usage

const randomProp = require('random-prop-obj')
const obj = {a: 1, b: 'two', c: 3, d: 4}
 
randomProp(obj)
// => two
 
randomProp(obj)
// => 3
 

install

npm i random-prop-obj

Downloadsweekly downloads

2

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability