API Reference

Returns a memoized version of a function.

function memoize<T extends (...args: any[]) => any>(func: T)

Memoization is the process of caching a function's result so that if the function is called with same parameters, the result can be retrieved from cache, rather than executing the function again.