diff --git a/memoize.js b/memoize.js index 3fb4c32bec..6b84366e7e 100644 --- a/memoize.js +++ b/memoize.js @@ -1,5 +1,3 @@ -import MapCache from './.internal/MapCache.js' - /** * Creates a function that memoizes the result of `func`. If `resolver` is * provided, it determines the cache key for storing the result based on the @@ -57,10 +55,10 @@ function memoize(func, resolver) { memoized.cache = cache.set(key, result) || cache return result } - memoized.cache = new (memoize.Cache || MapCache) + memoized.cache = new (memoize.Cache || Map) return memoized } -memoize.Cache = MapCache +memoize.Cache = Map export default memoize