0.1.0 • Published 7 years ago

@emjimadhu/random-array-obj v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

Random Object Generator

Get a Random Object from Given Array.

Installation

npm install @emjimadhu/random-array-obj

Usage

const randomObj = require('@emjimadhu/random-array-obj')

// OR

import randomObj from '@emjimadhu/random-array-obj'

let array = ['1', '2', '3', '4']

const objRandom = randomObj(array)

Output should be 2

Contributing

In lieu of a formal style guide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code.

0.1.0

7 years ago