4 ms·
In plain JS: pipe(a, b, c) is equivalent to a().then(b).then(c) function pipe(...functions) { (async () => { let accum; for (const fn of
by efortis 5y ago
In plain JS:
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);
}());
}