UNPKG

typedash

Version:

modern, type-safe collection of utility functions

20 lines (18 loc) 484 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 Object.defineProperty(exports, 'pipe', { enumerable: true, get: function () { return pipe; } }); //# sourceMappingURL=pipe-B7Xu6OU9.cjs.map