You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
424 B

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