From 508d46a7a4e448ed576cc268556d6bd10b1b994f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luiz=20Am=C3=A9rico?= Date: Sat, 1 Dec 2018 14:09:30 -0300 Subject: [PATCH] Replace MapCache by Map in memoize (#4094) (#4095) --- memoize.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/memoize.js b/memoize.js index 3fb4c32be..6b84366e7 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