strom/samples/collect.js
2018-12-04 01:30:38 -05:00

6 lines
161 B
JavaScript

const Mhysa = require("mhysa");
Mhysa.fromArray(["a", "b", "c"])
.pipe(Mhysa.collect({ objectMode: true }))
.on("data", object => console.log(object));