flow like the river
This commit is contained in:
commit
013fe673f3
42435 changed files with 5764238 additions and 0 deletions
22
BACK_BACK/node_modules/lodash-es/_mapCacheSet.js
generated
vendored
Executable file
22
BACK_BACK/node_modules/lodash-es/_mapCacheSet.js
generated
vendored
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
import getMapData from './_getMapData.js';
|
||||
|
||||
/**
|
||||
* Sets the map `key` to `value`.
|
||||
*
|
||||
* @private
|
||||
* @name set
|
||||
* @memberOf MapCache
|
||||
* @param {string} key The key of the value to set.
|
||||
* @param {*} value The value to set.
|
||||
* @returns {Object} Returns the map cache instance.
|
||||
*/
|
||||
function mapCacheSet(key, value) {
|
||||
var data = getMapData(this, key),
|
||||
size = data.size;
|
||||
|
||||
data.set(key, value);
|
||||
this.size += data.size == size ? 0 : 1;
|
||||
return this;
|
||||
}
|
||||
|
||||
export default mapCacheSet;
|
||||
Loading…
Add table
Add a link
Reference in a new issue