strom/samples/collect.js

6 lines
161 B
JavaScript
Raw Normal View History

2018-12-04 06:30:38 +00:00
const Mhysa = require("mhysa");
Mhysa.fromArray(["a", "b", "c"])
.pipe(Mhysa.collect({ objectMode: true }))
.on("data", object => console.log(object));