memoize
An optimization technique used to speed up consecutive function calls
memoize is a JavaScript package for accelerating repeated function calls by caching results for previously seen inputs. By default, it builds cache identity from the function's first argument using strict equality. Developers can supply custom cache-key functions when multiple arguments or value-based object comparisons are required. Cache entries can expire after a configurable duration, and storage can be replaced with Map-compatible implementations such as LRU caches. Utilities are provided for clearing cached values and checking whether a particular call is currently cached. ...