1.0.1 • Published 6 years ago

pull-recursive-flatten v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

pull-recursive-flatten

recursively fatten a stream of streams or stream of arrays.

pull(
  pull.values([a, [b, c]),
  Flatten(),
  pull.collect(function (err, ary) {
    //becomes [a, b, c]
  })
)

if it's a stream of streams, the same happens:

pull(
  pull.values([a, pull.values([b, c])),
  Flatten(),
  pull.collect(function (err, ary) {
    //becomes [a, b, c]
  })
)

License

MIT