Function: pipe()

pipe(...fns): (...args) => any

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

fns

...Fn[]

The functions to pipe.

Returns

A new function that takes any number of arguments and pipes them through fns.

(...args) => any