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