4 ms·
If you need an async one: pipe(a, b, c) is equivalent to a().then(b).then(c) function pipe(...functions) { (async () => { let accum; for (con
by efortis 4y ago
If you need an async one:
pipe(a, b, c) is equivalent to a().then(b).then(c)
function pipe(...functions) {
(async () => {
let accum;
for (const fn of functions)
accum = await fn(accum);
}());
}