random-key-obj

1.0.0 • Public • Published

random-key-obj Build Status

Pick a random key from an object

Install

npm install --save random-key-obj

Usage

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

Readme

Keywords

Package Sidebar

Install

npm i random-key-obj

Weekly Downloads

4

Version

1.0.0

License

MIT

Last publish

Collaborators

  • karloespiritu