uniteSets.cjs 445 B

123456789101112131415
  1. // NOTICE: This file is generated by Rollup. To modify it,
  2. // please instead edit the ESM counterpart and rebuild with Rollup (npm run build).
  3. 'use strict';
  4. /**
  5. * Unite two or more sets
  6. *
  7. * @param {Iterable<string>[]} args
  8. * @see {@link https://github.com/microsoft/TypeScript/issues/57228|GitHub}
  9. */
  10. function uniteSets(...args) {
  11. return new Set([...args].reduce((result, set) => [...result, ...set], []));
  12. }
  13. module.exports = uniteSets;