7ee89da24013f728e28c72b5aa5a2bd03fbce97c84be4b78fda790cee39b07e42993d9032aebfa50573e73e57e97c6901028005e6d366f79aae5e412f28fc6 405 B

123456789101112131415161718
  1. /**
  2. * Removes `key` and its value from the stack.
  3. *
  4. * @private
  5. * @name delete
  6. * @memberOf Stack
  7. * @param {string} key The key of the value to remove.
  8. * @returns {boolean} Returns `true` if the entry was removed, else `false`.
  9. */
  10. function stackDelete(key) {
  11. var data = this.__data__,
  12. result = data['delete'](key);
  13. this.size = data.size;
  14. return result;
  15. }
  16. module.exports = stackDelete;