From 6555fb80fdd8f6a5d201efadec3189d1244830a0 Mon Sep 17 00:00:00 2001 From: Nevena Bojovic Date: Tue, 1 Mar 2022 22:05:25 +0100 Subject: Izbrisala bin, obj i node-modules. --- .../Front/node_modules/lodash/_memoizeCapped.js | 26 ---------------------- 1 file changed, 26 deletions(-) delete mode 100644 sandbox/testAppNevena/Front/node_modules/lodash/_memoizeCapped.js (limited to 'sandbox/testAppNevena/Front/node_modules/lodash/_memoizeCapped.js') diff --git a/sandbox/testAppNevena/Front/node_modules/lodash/_memoizeCapped.js b/sandbox/testAppNevena/Front/node_modules/lodash/_memoizeCapped.js deleted file mode 100644 index 7f71c8fb..00000000 --- a/sandbox/testAppNevena/Front/node_modules/lodash/_memoizeCapped.js +++ /dev/null @@ -1,26 +0,0 @@ -var memoize = require('./memoize'); - -/** Used as the maximum memoize cache size. */ -var MAX_MEMOIZE_SIZE = 500; - -/** - * 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. - */ -function memoizeCapped(func) { - var result = memoize(func, function(key) { - if (cache.size === MAX_MEMOIZE_SIZE) { - cache.clear(); - } - return key; - }); - - var cache = result.cache; - return result; -} - -module.exports = memoizeCapped; -- cgit v1.2.3