Files
lodash/_mapCacheDelete.js
John-David Dalton dbe6a9008c Bump to v4.12.0.
2016-05-08 12:30:27 -07:00

17 lines
396 B
JavaScript

var getMapData = require('./_getMapData');
/**
* 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) {
return getMapData(this, key)['delete'](key);
}
module.exports = mapCacheDelete;