Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eslint/node_modules/lodash/_hashClear.js')
-rw-r--r--tools/eslint/node_modules/lodash/_hashClear.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/tools/eslint/node_modules/lodash/_hashClear.js b/tools/eslint/node_modules/lodash/_hashClear.js
new file mode 100644
index 00000000000..14c159176cc
--- /dev/null
+++ b/tools/eslint/node_modules/lodash/_hashClear.js
@@ -0,0 +1,14 @@
+var nativeCreate = require('./_nativeCreate');
+
+/**
+ * Removes all key-value entries from the hash.
+ *
+ * @private
+ * @name clear
+ * @memberOf Hash
+ */
+function hashClear() {
+ this.__data__ = nativeCreate ? nativeCreate(null) : {};
+}
+
+module.exports = hashClear;