strom/samples/filter.js

7 lines
160 B
JavaScript
Raw Normal View History

2018-12-03 05:38:17 +00:00
const Mhysa = require("mhysa");
Mhysa.fromArray(["a", "b", "c"])
.pipe(Mhysa.filter(s => s !== "b"))
.pipe(Mhysa.join(","))
.pipe(process.stdout);