1 | ;
|
2 | var $ = require('../internals/export');
|
3 | var call = require('../internals/function-call');
|
4 | var toSetLike = require('../internals/to-set-like');
|
5 | var $difference = require('../internals/set-difference');
|
6 |
|
7 | // `Set.prototype.difference` 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 | difference: function difference(other) {
|
12 | return call($difference, this, toSetLike(other));
|
13 | }
|
14 | });
|