SIGN IN SIGN UP

A modern JavaScript utility library delivering modularity, performance, & extras.

0 0 32 JavaScript
2015-12-16 17:53:20 -08:00
define([], function() {
/**
* 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) {
2016-07-24 09:52:04 -07:00
// Don't return `set.add` because it's not chainable in IE 11.
2015-12-16 17:53:20 -08:00
set.add(value);
return set;
}
return addSetEntry;
});