Urara-Blog/node_modules/.pnpm-store/v3/files/4b/7ee89da24013f728e28c72b5aa5a2bd03fbce97c84be4b78fda790cee39b07e42993d9032aebfa50573e73e57e97c6901028005e6d366f79aae5e412f28fc6
2022-08-14 01:14:53 +08:00

18 lines
405 B
Text

/**
* Removes `key` and its value from the stack.
*
* @private
* @name delete
* @memberOf Stack
* @param {string} key The key of the value to remove.
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
*/
function stackDelete(key) {
var data = this.__data__,
result = data['delete'](key);
this.size = data.size;
return result;
}
module.exports = stackDelete;