2020-07-04 04:08:31 +00:00
|
|
|
const strom = require("strom");
|
2018-12-03 05:38:17 +00:00
|
|
|
|
2020-07-04 04:08:31 +00:00
|
|
|
strom.fromArray(["a", "AA"])
|
|
|
|
.pipe(strom.flatMap(s => new Array(s.length).fill(s)))
|
|
|
|
.pipe(strom.join(","))
|
2018-12-03 05:38:17 +00:00
|
|
|
.pipe(process.stdout);
|