mirror of
https://kevinblog.sytes.net/Code/Jibo-Revival-Group/jibo-cli.git
synced 2026-06-15 17:36:08 +00:00
19 lines
382 B
JavaScript
19 lines
382 B
JavaScript
|
|
/**
|
||
|
|
* Sets `value` to `key` of the cache.
|
||
|
|
*
|
||
|
|
* @private
|
||
|
|
* @name set
|
||
|
|
* @memberOf _.memoize.Cache
|
||
|
|
* @param {string} key The key of the value to cache.
|
||
|
|
* @param {*} value The value to cache.
|
||
|
|
* @returns {Object} Returns the cache object.
|
||
|
|
*/
|
||
|
|
function mapSet(key, value) {
|
||
|
|
if (key != '__proto__') {
|
||
|
|
this.__data__[key] = value;
|
||
|
|
}
|
||
|
|
return this;
|
||
|
|
}
|
||
|
|
|
||
|
|
module.exports = mapSet;
|