@iterables/chain
v1.0.1
Published
Chain multiple iterators together.
Downloads
1,552
Readme
@iterables/chain
Chain multiple iterators together.
const chain = require('@iterables/chain')
console.log([...chain([1,2,3], 'abc')]) // [1, 2, 3, 'a', 'b', 'c']
Installation
$ npm install --save @iterables/chain
API
chain(...iterators) -> Iterator
Chain an arbitrary number of iterators together, returning a new iterator.
License
MIT