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
 

/random-prop-obj/

    Package Sidebar

    Install

    npm i random-prop-obj

    Weekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Last publish

    Collaborators

    • karloespiritu