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