import memoize_1 from "./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;
export {
  _memoizeCapped as default
};
//# sourceMappingURL=_memoizeCapped.js.map
