Composes two functions sequentially. z = pipe(a)(b)(x) means y = a(x), z = b(y).
z = pipe(a)(b)(x)
y = a(x), z = b(y)
The function to do at first.
The composed function.
expect(pipe((x: number) => x + 1)((x) => x * 2)(3)).toStrictEqual(8); Copy
expect(pipe((x: number) => x + 1)((x) => x * 2)(3)).toStrictEqual(8);
Composes two functions sequentially.
z = pipe(a)(b)(x)meansy = a(x), z = b(y).