pipe multiple functions, left to right
组合多个函数,从左到右执行
The type of elements in the array / 数组元素的类型
The functions to pipe. 要组合的函数
A new function that is the pipeline of the input functions. 由输入函数组合而成的新函数
const add = (a) => a + 1const subtract = (a) => a - 2const multiply = (a, b) => a * bpipe(add, subtract, multiply)(1, 2) // => (1 * 2) + 1 - 2 = 1 Copy
const add = (a) => a + 1const subtract = (a) => a - 2const multiply = (a, b) => a * bpipe(add, subtract, multiply)(1, 2) // => (1 * 2) + 1 - 2 = 1
pipe multiple functions, left to right
组合多个函数,从左到右执行