aboutsummaryrefslogtreecommitdiff
path: root/node_modules/lodash/_hashClear.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/lodash/_hashClear.js')
-rw-r--r--node_modules/lodash/_hashClear.js15
1 files changed, 15 insertions, 0 deletions
diff --git a/node_modules/lodash/_hashClear.js b/node_modules/lodash/_hashClear.js
new file mode 100644
index 0000000..5d4b70c
--- /dev/null
+++ b/node_modules/lodash/_hashClear.js
@@ -0,0 +1,15 @@
+var nativeCreate = require('./_nativeCreate');
+
+/**
+ * Removes all key-value entries from the hash.
+ *
+ * @private
+ * @name clear
+ * @memberOf Hash
+ */
+function hashClear() {
+ this.__data__ = nativeCreate ? nativeCreate(null) : {};
+ this.size = 0;
+}
+
+module.exports = hashClear;