node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org »

@iterables/chain

@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