@emjimadhu/random-array-obj

0.1.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @emjimadhu/random-array-obj

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

2.39 kB

Total Files

4

Last publish

Collaborators

  • emjimadhu