@iterables/chain

1.0.1 • Public • Published

@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

Readme

Keywords

none

Package Sidebar

Install

npm i @iterables/chain

Weekly Downloads

684

Version

1.0.1

License

MIT

Last publish

Collaborators

  • chrisdickinson