1 | 'use strict';
|
2 | var $ = require('../internals/export');
|
3 | var IS_PURE = require('../internals/is-pure');
|
4 | var anObject = require('../internals/an-object');
|
5 | var aFunction = require('../internals/a-function');
|
6 | var iterate = require('../internals/iterate');
|
7 |
|
8 |
|
9 |
|
10 | $({ target: 'Set', proto: true, real: true, forced: IS_PURE }, {
|
11 | isDisjointFrom: function isDisjointFrom(iterable) {
|
12 | var set = anObject(this);
|
13 | var hasCheck = aFunction(set.has);
|
14 | return !iterate(iterable, function (value) {
|
15 | if (hasCheck.call(set, value) === true) return iterate.stop();
|
16 | }).stopped;
|
17 | }
|
18 | });
|