massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / es / instance / some.js
index 562c11ea459dce1e8353aba68f9fc56328498773..3b4a08509d4586a61bf20c5fb449363dc811912f 100644 (file)
@@ -1,8 +1,9 @@
-var some = require('../array/virtual/some');
+var isPrototypeOf = require('../../internals/object-is-prototype-of');
+var method = require('../array/virtual/some');
 
 var ArrayPrototype = Array.prototype;
 
 module.exports = function (it) {
   var own = it.some;
-  return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.some) ? some : own;
+  return it === ArrayPrototype || (isPrototypeOf(ArrayPrototype, it) && own === ArrayPrototype.some) ? method : own;
 };