esnext.set.difference.js 519 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 $difference = require('../internals/set-difference');
  6. // `Set.prototype.difference` 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. difference: function difference(other) {
  11. return call($difference, this, toSetLike(other));
  12. }
  13. });