mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Bump to v3.0.0.
This commit is contained in:
17
internal/mapDelete.js
Normal file
17
internal/mapDelete.js
Normal file
@@ -0,0 +1,17 @@
|
||||
define([], function() {
|
||||
|
||||
/**
|
||||
* Removes `key` and its value from the cache.
|
||||
*
|
||||
* @private
|
||||
* @name delete
|
||||
* @memberOf _.memoize.Cache
|
||||
* @param {string} key The key of the value to remove.
|
||||
* @returns {boolean} Returns `true` if the entry was removed successfully, else `false`.
|
||||
*/
|
||||
function mapDelete(key) {
|
||||
return this.has(key) && delete this.__data__[key];
|
||||
}
|
||||
|
||||
return mapDelete;
|
||||
});
|
||||
Reference in New Issue
Block a user