Version 1
[yaffs-website] / node_modules / grunt-legacy-log / node_modules / lodash / internal / MapCache.js
diff --git a/node_modules/grunt-legacy-log/node_modules/lodash/internal/MapCache.js b/node_modules/grunt-legacy-log/node_modules/lodash/internal/MapCache.js
new file mode 100644 (file)
index 0000000..1d7ab98
--- /dev/null
@@ -0,0 +1,24 @@
+var mapDelete = require('./mapDelete'),
+    mapGet = require('./mapGet'),
+    mapHas = require('./mapHas'),
+    mapSet = require('./mapSet');
+
+/**
+ * Creates a cache object to store key/value pairs.
+ *
+ * @private
+ * @static
+ * @name Cache
+ * @memberOf _.memoize
+ */
+function MapCache() {
+  this.__data__ = {};
+}
+
+// Add functions to the `Map` cache.
+MapCache.prototype['delete'] = mapDelete;
+MapCache.prototype.get = mapGet;
+MapCache.prototype.has = mapHas;
+MapCache.prototype.set = mapSet;
+
+module.exports = MapCache;