Skip to content

pull-stream/pull-recursive-flatten

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published