Version 1
[yaffs-website] / node_modules / grunt-legacy-log-utils / node_modules / lodash / _mapClear.js
diff --git a/node_modules/grunt-legacy-log-utils/node_modules/lodash/_mapClear.js b/node_modules/grunt-legacy-log-utils/node_modules/lodash/_mapClear.js
new file mode 100644 (file)
index 0000000..c8ca3ef
--- /dev/null
@@ -0,0 +1,15 @@
+var Hash = require('./_Hash'),
+    Map = require('./_Map');
+
+/**
+ * Removes all key-value entries from the map.
+ *
+ * @private
+ * @name clear
+ * @memberOf MapCache
+ */
+function mapClear() {
+  this.__data__ = { 'hash': new Hash, 'map': Map ? new Map : [], 'string': new Hash };
+}
+
+module.exports = mapClear;