pipe<A, B, C>(initial: A, f1: ((x: A) => B), f2: ((x: B) => C)): C
Starting with the initial input, performs a series of transforms, passing the
return value of each function as the argument to the next.
Remarks
The implementation contains types to support up to twelve transformations.
All overload signatures follow the same pattern as the representative form shown
here.
Starting with the
initial
input, performs a series of transforms, passing the return value of each function as the argument to the next.Remarks
The implementation contains types to support up to twelve transformations. All overload signatures follow the same pattern as the representative form shown here.
Example