"use strict";
const memoize$1 = require("./memoize.js");
var memoize = memoize$1;
var MAX_MEMOIZE_SIZE = 500;
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;
}
var _memoizeCapped = memoizeCapped;
module.exports = _memoizeCapped;
//# sourceMappingURL=_memoizeCapped.js.map
