blob: 2fc9522be6665ec927cd543d31b1101580a0f999 [file] [log] [blame]
/**
* Unite two or more sets
*
* @param {Iterable<string>[]} args
* @see {@link https://github.com/microsoft/TypeScript/issues/57228|GitHub}
*/
export default function uniteSets(...args) {
return new Set([...args].reduce((result, set) => [...result, ...set], []));
}