Y
Hacker News
new
|
ask
|
show
|
jobs
by
reaktivo
2333 days ago
I think it's worth nothing that a full Promise handling pipe function can be written like so:
const pipe = (...args) => args.reduce(async (acc, fn) => fn(await acc));
No actual third party libraries required