Composes multiple functions from left to right (a.k.a. pipeline).
The output of each function is passed as input to the next function.
Functions to pipe, applied from left to right.
A function that represents the pipelined composition.
const add = (x: number) => x + 1;const double = (x: number) => x * 2;const piped = pipe(add, double);console.log(piped(3)); // (3 + 1) * 2 = 8 Copy
const add = (x: number) => x + 1;const double = (x: number) => x * 2;const piped = pipe(add, double);console.log(piped(3)); // (3 + 1) * 2 = 8
1.1.0
Composes multiple functions from left to right (a.k.a. pipeline).
The output of each function is passed as input to the next function.