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

7 lines
158 B
JavaScript

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