Takes a series of functions and returns a new function that runs these functions in sequence.
If a function returns a Promise, the next function is called with the resolved value.
Parameters
Rest...fns: Fn[]
The functions to pipe.
Returns ((...args) => any)
A new function that takes any number of arguments and pipes them through fns.
Takes a series of functions and returns a new function that runs these functions in sequence. If a function returns a Promise, the next function is called with the resolved value.