git ssb

2+

Dominic / pull-stream



Tree: 6dab0f0aee56ec3a23287a6df1a8be33b0bef4ca

Files: 6dab0f0aee56ec3a23287a6df1a8be33b0bef4ca / sinks / collect.js

177 bytesRaw
1'use strict'
2
3var reduce = require('./reduce')
4
5module.exports = function collect (cb) {
6 return reduce(function (arr, item) {
7 arr.push(item)
8 return arr
9 }, [], cb)
10}
11

Built with git-ssb-web