Files: 7d0c918beaee414a6b11f020b51dfb097122ede0 / docs / throughs / take.md
390 bytesRaw
pull-stream/throughs/take
usage
take = require('pull-stream/throughs/take')
take(test [, opts])
If test is a function, read data from the source stream and forward it downstream until test(data) returns false.
If opts.last
is set to true, the data for which the test failed will be included in what is forwarded.
If test is an integer, take n item from the source.
Built with git-ssb-web