mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 18:07:49 +00:00
Apply arrow function transform.
This commit is contained in:
@@ -12,7 +12,7 @@ var MAX_MEMOIZE_SIZE = 500;
|
||||
* @returns {Function} Returns the new memoized function.
|
||||
*/
|
||||
function memoizeCapped(func) {
|
||||
var result = memoize(func, function(key) {
|
||||
var result = memoize(func, key => {
|
||||
if (cache.size === MAX_MEMOIZE_SIZE) {
|
||||
cache.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user