CoolFace
Datasetpublic

basant307/AI_Governance_Project

sourceHugging Faceapache-2.0updated 2mo agoView on Hugging Face
0likes45downloads
_mapCacheDelete.js19 linesDownload Raw Back to lodash
1var getMapData = require('./_getMapData');2 3/**4 * Removes `key` and its value from the map.5 *6 * @private7 * @name delete8 * @memberOf MapCache9 * @param {string} key The key of the value to remove.10 * @returns {boolean} Returns `true` if the entry was removed, else `false`.11 */12function mapCacheDelete(key) {13  var result = getMapData(this, key)['delete'](key);14  this.size -= result ? 1 : 0;15  return result;16}17 18module.exports = mapCacheDelete;19 
basant307/AI_Governance_Project · CoolFace