UNPKG

@studiometa/js-toolkit

Version:

A set of useful little bits of JavaScript to boost your project! 🚀

7 lines (6 loc) • 285 B
/** * Memoize the result of a function with a single argument indefinitely. * This is a simpler implementation of the `memoize` function. * @link https://js-toolkit.studiometa.dev/utils/memo.html */ export declare function memo<T extends (...args: unknown[]) => unknown>(fn: T): T;