function pipe(arg, ...fns) { return fns.reduce((v, fn) => fn(v), arg); } const result = pipe( numbers, filter((v) => v % 2 == 0), map((v) => v + 1), slice(0, 3), Array.from );
There was an error while loading. Please reload this page.