@iterables/chain

Chain multiple iterators together.

Stats

StarsIssuesVersionUpdatedCreatedSize
@iterables/chain
301.0.14 years ago4 years agoMinified + gzip package size for @iterables/chain in KB

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.