Novelty Polygonal Mathematics
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

@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

Keywords

none

install

npm i @iterables/chain

Downloadsweekly downloads

406

version

1.0.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar