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