securityos/node_modules/stylelint/lib/utils/uniteSets.js

9 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], []));
};