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