3 ms·
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(a
by reaktivo 7y 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