UNPKG

typedash

Version:

modern, type-safe collection of utility functions

14 lines (13 loc) 397 B
//#region src/functions/pipe/pipe.ts /** * Implementation of pipe function. * @param o1 first operation * @param operations rest of operations * @returns function that will execute all operations in order */ function pipe(o1, ...operations) { return (...argsP) => operations.reduce((acc, f) => f(acc), o1(...argsP)); } //#endregion export { pipe as t }; //# sourceMappingURL=pipe-C48TGcwv.js.map