npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

random-uniq-array

1.0.1 • Public • Published

random-uniq-array

Get a unique element from an array successively

Install

$ npm install --save random-uniq-array

Usage

const randomUniqArray = require('random-uniq-array')
 
const arr = ['earth', 'mars', 'jupiter', 'saturn']
const random = randomUniqArray(arr)
 
console.log(random(), random(), random())
// prints mars, earth, saturn

install

npm i random-uniq-array

Downloadsweekly downloads

3

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability