Version 1
[yaffs-website] / node_modules / uncss / node_modules / form-data / node_modules / lodash / _mapCacheClear.js
diff --git a/node_modules/uncss/node_modules/form-data/node_modules/lodash/_mapCacheClear.js b/node_modules/uncss/node_modules/form-data/node_modules/lodash/_mapCacheClear.js
new file mode 100644 (file)
index 0000000..bc9ca20
--- /dev/null
@@ -0,0 +1,21 @@
+var Hash = require('./_Hash'),
+    ListCache = require('./_ListCache'),
+    Map = require('./_Map');
+
+/**
+ * Removes all key-value entries from the map.
+ *
+ * @private
+ * @name clear
+ * @memberOf MapCache
+ */
+function mapCacheClear() {
+  this.size = 0;
+  this.__data__ = {
+    'hash': new Hash,
+    'map': new (Map || ListCache),
+    'string': new Hash
+  };
+}
+
+module.exports = mapCacheClear;