【文件属性】:
文件名称:arr-iterator:数组迭代器
文件大小:4KB
文件格式:ZIP
更新时间:2021-06-10 18:37:22
JavaScript
仲裁器
数组的迭代器。
安装
npm install arr-iterator
用法
var ArrIterator = require ( 'arr-iterator' )
var arr = [ 'foo' , 'bar' , 'baz' ]
var iter = new ArrIterator ( arr )
iter . next ( ) // => { done: false, value: 'foo' }
iter . next ( ) // => { done: false, value: 'bar' }
iter . next ( ) // => { done: false, value: 'baz' }
iter . next ( ) // => { done: true, value: undefined }
【文件预览】:
arr-iterator-master
----.gitignore(33B)
----package.json(780B)
----.travis.yml(72B)
----LICENSE(1KB)
----index.js(500B)
----README.md(917B)
----.npmignore(83B)
----.gitattributes(12B)
----test()
--------index.js(497B)
----.editorconfig(179B)