summaryrefslogtreecommitdiff
path: root/tools/eslint/node_modules/lodash/_mapClear.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eslint/node_modules/lodash/_mapClear.js')
-rw-r--r--tools/eslint/node_modules/lodash/_mapClear.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/eslint/node_modules/lodash/_mapClear.js b/tools/eslint/node_modules/lodash/_mapClear.js
new file mode 100644
index 0000000000..c8ca3ef7c4
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/_mapClear.js
@@ -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;