massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / modules / esnext.set.is-subset-of.js
index 9ac513f769fbcad9f31137210cc9c51c5783ec12..f294824610c2f3156cfb1e8529b43550d86e84c6 100644 (file)
@@ -1,9 +1,11 @@
 'use strict';
-var $ = require('../internals/export');
 var IS_PURE = require('../internals/is-pure');
+var $ = require('../internals/export');
 var getBuiltIn = require('../internals/get-built-in');
+var call = require('../internals/function-call');
+var aCallable = require('../internals/a-callable');
+var isCallable = require('../internals/is-callable');
 var anObject = require('../internals/an-object');
-var aFunction = require('../internals/a-function');
 var getIterator = require('../internals/get-iterator');
 var iterate = require('../internals/iterate');
 
@@ -14,12 +16,12 @@ $({ target: 'Set', proto: true, real: true, forced: IS_PURE }, {
     var iterator = getIterator(this);
     var otherSet = anObject(iterable);
     var hasCheck = otherSet.has;
-    if (typeof hasCheck != 'function') {
+    if (!isCallable(hasCheck)) {
       otherSet = new (getBuiltIn('Set'))(iterable);
-      hasCheck = aFunction(otherSet.has);
+      hasCheck = aCallable(otherSet.has);
     }
     return !iterate(iterator, function (value, stop) {
-      if (hasCheck.call(otherSet, value) === false) return stop();
+      if (call(hasCheck, otherSet, value) === false) return stop();
     }, { IS_ITERATOR: true, INTERRUPTED: true }).stopped;
   }
 });