UNPKG

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