aswi2020vldc-gitlab/templetes/node_modules/lodash/_setCacheAdd.js @ 10920ea3
1 | 3a515b92 | cagy | /** Used to stand-in for `undefined` hash values. */
|
---|---|---|---|
2 | var HASH_UNDEFINED = '__lodash_hash_undefined__'; |
||
3 | |||
4 | /**
|
||
5 | * Adds `value` to the array cache.
|
||
6 | *
|
||
7 | * @private
|
||
8 | * @name add
|
||
9 | * @memberOf SetCache
|
||
10 | * @alias push
|
||
11 | * @param {*} value The value to cache.
|
||
12 | * @returns {Object} Returns the cache instance.
|
||
13 | */
|
||
14 | function setCacheAdd(value) { |
||
15 | this.__data__.set(value, HASH_UNDEFINED); |
||
16 | return this; |
||
17 | }
|
||
18 | |||
19 | module.exports = setCacheAdd; |