strom/samples/map.js

7 lines
158 B
JavaScript
Raw Permalink Normal View History

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