UNPKG

@utilify/core

Version:

Modern, strongly typed, and safe utility function library for JavaScript and TypeScript. Includes type checking, manipulation of arrays, objects, strings, dates, colors, numbers, regular expressions, and more. Compatible with Browser, Node.js, Deno, and B

14 lines 448 B
/** * @callback ComposeCallback * @param {T} value * @returns {T} */ /** * Composes multiple functions from right to left. * @template T * @param {...ComposeCallback} callbacks - Functions to compose. * @returns {(value: T) => T} The composed function. * @throws {TypeError} If any argument is not a function. */ export default function compose<T>(...callbacks: ((value: T) => T)[]): (value: T) => T; //# sourceMappingURL=compose.d.ts.map