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