1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-04 10:19:24 +02:00
Oinktube/node_modules/random-iterate/README.md
2023-02-17 15:04:26 -03:00

25 lines
479 B
Markdown

# random-iterate
Iterate values in a list in random order
```
npm install random-iterate
```
[![build status](http://img.shields.io/travis/mafintosh/random-iterate.svg?style=flat)](http://travis-ci.org/mafintosh/random-iterate)
## Usage
``` js
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