_setCacheAdd.js 424 B

1234567891011121314151617181920
  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;