You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
510 B

1 month ago
  1. 'use strict';
  2. var $ = require('../internals/export');
  3. var isDisjointFrom = require('../internals/set-is-disjoint-from');
  4. var setMethodAcceptSetLike = require('../internals/set-method-accept-set-like');
  5. var INCORRECT = !setMethodAcceptSetLike('isDisjointFrom', function (result) {
  6. return !result;
  7. });
  8. // `Set.prototype.isDisjointFrom` method
  9. // https://tc39.es/ecma262/#sec-set.prototype.isdisjointfrom
  10. $({ target: 'Set', proto: true, real: true, forced: INCORRECT }, {
  11. isDisjointFrom: isDisjointFrom
  12. });