Files: 8c0347d8e7f88171cd4c45eec22b42c5c7332fac / sinks / collect.js
177 bytesRaw
1 | |
2 | |
3 | var reduce = require('./reduce') |
4 | |
5 | module.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