UNPKG

@studiometa/js-toolkit

Version:

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

6 lines (5 loc) • 227 B
/** * Memoize the result of a function with a single argument indefinitely. * This is a simpler implementation of the `memoize` function. */ export declare function memo<T extends (...args: unknown[]) => unknown>(fn: T): T;