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