esnext.set.symmetric-difference.js 574 B

1234567891011121314
  1. 'use strict';
  2. var $ = require('../internals/export');
  3. var call = require('../internals/function-call');
  4. var toSetLike = require('../internals/to-set-like');
  5. var $symmetricDifference = require('../internals/set-symmetric-difference');
  6. // `Set.prototype.symmetricDifference` method
  7. // https://github.com/tc39/proposal-set-methods
  8. // TODO: Obsolete version, remove from `core-js@4`
  9. $({ target: 'Set', proto: true, real: true, forced: true }, {
  10. symmetricDifference: function symmetricDifference(other) {
  11. return call($symmetricDifference, this, toSetLike(other));
  12. }
  13. });