UNPKG

@newdash/newdash

Version:

javascript/typescript utility library

11 lines (10 loc) 357 B
export default memoizeCapped; /** * A specialized version of `memoize` which clears the memoized function's * cache when it exceeds `MAX_MEMOIZE_SIZE`. * * @private * @param {Function} func The function to have its output memoized. * @returns {Function} Returns the new memoized function. */ declare function memoizeCapped(func: Function): Function;