epiphany/node_modules/stylelint/lib/utils/uniteSets.js
2023-12-09 22:48:07 -08:00

8 lines
200 B
JavaScript

/**
* Unite two or more sets
*
* @param {Iterable<string>[]} args
*/
module.exports = function uniteSets(...args) {
return new Set([...args].reduce((result, set) => [...result, ...set], []));
};