Initial commit
[yaffs-website] / node_modules / grunt-contrib-watch / node_modules / lodash / internal / mapDelete.js
1 /**
2  * Removes `key` and its value from the cache.
3  *
4  * @private
5  * @name delete
6  * @memberOf _.memoize.Cache
7  * @param {string} key The key of the value to remove.
8  * @returns {boolean} Returns `true` if the entry was removed successfully, else `false`.
9  */
10 function mapDelete(key) {
11   return this.has(key) && delete this.__data__[key];
12 }
13
14 module.exports = mapDelete;