Skip to content

Latest commit

 

History

History
27 lines (23 loc) · 414 Bytes

README.md

File metadata and controls

27 lines (23 loc) · 414 Bytes

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