massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / features / set / of.js
index 114558a2ec2a66ce05e298edc322cc1b5006c0b2..eac72b7e78f01f25977ad7071101e74e64c64ba1 100644 (file)
@@ -1,13 +1,14 @@
 'use strict';
+require('../../modules/es.array.iterator');
 require('../../modules/es.set');
-require('../../modules/es.string.iterator');
 require('../../modules/esnext.set.of');
-require('../../modules/web.dom-collections.iterator');
 var path = require('../../internals/path');
+var apply = require('../../internals/function-apply');
+var isCallable = require('../../internals/is-callable');
 
 var Set = path.Set;
 var setOf = Set.of;
 
 module.exports = function of() {
-  return setOf.apply(typeof this === 'function' ? this : Set, arguments);
+  return apply(setOf, isCallable(this) ? this : Set, arguments);
 };