_stackClear.js 254 B

123456789101112131415
  1. var ListCache = require('./_ListCache');
  2. /**
  3. * Removes all key-value entries from the stack.
  4. *
  5. * @private
  6. * @name clear
  7. * @memberOf Stack
  8. */
  9. function stackClear() {
  10. this.__data__ = new ListCache;
  11. this.size = 0;
  12. }
  13. module.exports = stackClear;