Fix reduce sample
This commit is contained in:
parent
830d01f977
commit
407bb79260
@ -2,4 +2,5 @@ const Mhysa = require("mhysa");
|
||||
|
||||
Mhysa.fromArray(["a", "b", "cc"])
|
||||
.pipe(Mhysa.reduce((acc, s) => ({ ...acc, [s]: s.length }), {}))
|
||||
.pipe(Mhysa.stringify())
|
||||
.pipe(process.stdout);
|
||||
|
Loading…
Reference in New Issue
Block a user