strom/samples/filter.js
2018-12-03 00:38:17 -05:00

7 lines
160 B
JavaScript

const Mhysa = require("mhysa");
Mhysa.fromArray(["a", "b", "c"])
.pipe(Mhysa.filter(s => s !== "b"))
.pipe(Mhysa.join(","))
.pipe(process.stdout);