es.set.union.v2.js 376 B

12345678910
  1. 'use strict';
  2. var $ = require('../internals/export');
  3. var union = require('../internals/set-union');
  4. var setMethodAcceptSetLike = require('../internals/set-method-accept-set-like');
  5. // `Set.prototype.union` method
  6. // https://tc39.es/ecma262/#sec-set.prototype.union
  7. $({ target: 'Set', proto: true, real: true, forced: !setMethodAcceptSetLike('union') }, {
  8. union: union
  9. });