"use strict"; const simpleSink = require("@promistream/simple-sink"); module.exports = function collect() { let results = []; return simpleSink({ onValue: (value) => { results.push(value); }, onEnd: () => { return results; } }); };