文件名称:轻巧高效的迭代器-JavaScript开发
文件大小:6KB
文件格式:ZIP
更新时间:2024-06-14 22:54:40
JavaScript Miscellaneous
nanoiterator轻巧高效的迭代器npm install nanoiterator用法var nanoiterator =要求('nanoiterator')var值= [1,2,3,4,null] var ite = nanoiterator({next:cb => process.nextT nanoiterator轻量级高效的迭代器npm install nanoiterator用法var nanoiterator = require('nanoiterator')var值= [1,2,3,4,null] var ite = nanoiterator({next:cb => process.nextTick(cb,null ,values.shift())})ite.next(console.log)// 1 ite.next(console.log)// 2 ite.next(console.log)// 3 ite.next(console.log) // 4 ite .next(console.log)// null API var ite = nanoiterato
【文件预览】:
nanoiterator-master
----.travis.yml(65B)
----to-stream.js(834B)
----index.js(3KB)
----test.js(7KB)
----package.json(647B)
----LICENSE(1KB)
----example.js(290B)
----.gitignore(13B)
----README.md(2KB)