_addSetEntry.js 328 B

123456789101112131415
  1. /**
  2. * Adds `value` to `set`.
  3. *
  4. * @private
  5. * @param {Object} set The set to modify.
  6. * @param {*} value The value to add.
  7. * @returns {Object} Returns `set`.
  8. */
  9. function addSetEntry(set, value) {
  10. // Don't return `set.add` because it's not chainable in IE 11.
  11. set.add(value);
  12. return set;
  13. }
  14. export default addSetEntry;