summaryrefslogtreecommitdiff
path: root/tools/node_modules/eslint/node_modules/lodash/_addSetEntry.js
blob: 1a07b708ac4758e0fe1bcb57332df295edb9252c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/**
 * Adds `value` to `set`.
 *
 * @private
 * @param {Object} set The set to modify.
 * @param {*} value The value to add.
 * @returns {Object} Returns `set`.
 */
function addSetEntry(set, value) {
  // Don't return `set.add` because it's not chainable in IE 11.
  set.add(value);
  return set;
}

module.exports = addSetEntry;