Have opinions about JavaScript? We want to hear them. Take the 2018 JavaScript Ecosystem Survey »

random-iterate

1.0.1 • Public • Published

random-iterate

Iterate values in a list in random order

npm install random-iterate

build status

Usage

var iterate = require('random-iterate')
var ite = iterate([1,2,3,4,5,6,7,8,9])
 
console.log(ite()) // maybe 4
console.log(ite()) // maybe 9
... 7 more time ...
console.log(ite()) // returns null (end of list)

License

MIT

Keywords

none

install

npm i random-iterate

Downloadsweekly downloads

2,637

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability