mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 08:57:49 +00:00
Bump to v3.0.0.
This commit is contained in:
18
internal/mapSet.js
Normal file
18
internal/mapSet.js
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Adds `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;
|
||||
}
|
||||
|
||||
export default mapSet;
|
||||
Reference in New Issue
Block a user