Files
NapCatQQ/.pnpm-store/v3/files/a4/204e4a4e6fbda93816380811abaa95fcbfa91bf8381e64aaee4a4393f31db73d73666fca0a1bf1e188e7debb930a0636562f7cd1ee2e17cd4cef76ff60a232
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

19 lines
448 B
Plaintext

import getMapData from './_getMapData.js';
/**
* Removes `key` and its value from the map.
*
* @private
* @name delete
* @memberOf MapCache
* @param {string} key The key of the value to remove.
* @returns {boolean} Returns `true` if the entry was removed, else `false`.
*/
function mapCacheDelete(key) {
var result = getMapData(this, key)['delete'](key);
this.size -= result ? 1 : 0;
return result;
}
export default mapCacheDelete;