@common-utilities/compose
Version:
A basic implementation of the common utility function, Compose 🚂
13 lines (12 loc) • 389 B
TypeScript
/**
* compose 🚂
* ----
* a common function that takes the output from one function
* and automatically patches it to the input of the next function
* until it spits out the final value
* ----
* @param {fns} an array of functions
* @returns the next/final value
*/
export declare const compose: (...fns: unknown[]) => (patchedValue: unknown) => unknown;
export default compose;