mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-22 16:35:14 +00:00
16 lines
328 B
JavaScript
16 lines
328 B
JavaScript
|
/**
|
||
|
* 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;
|
||
|
}
|
||
|
|
||
|
export default addSetEntry;
|