1
0
mirror of https://github.com/thangisme/notes.git synced 2024-11-09 16:17:22 -05:00
notes/node_modules/lodash/_addSetEntry.js

16 lines
330 B
JavaScript
Raw Normal View History

2017-03-09 13:16:08 -05:00
/**
* 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;