npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

@iterables/chain

1.0.1

@chrisdickinson

npmHomeRepoSnykSocket
Downloads:1028
$ npm install @iterables/chain
DailyWeeklyMonthlyYearly

@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