diff options
Diffstat (limited to 'node_modules/core-js/es/instance/copy-within.js')
| -rw-r--r-- | node_modules/core-js/es/instance/copy-within.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/node_modules/core-js/es/instance/copy-within.js b/node_modules/core-js/es/instance/copy-within.js new file mode 100644 index 0000000..c59f52d --- /dev/null +++ b/node_modules/core-js/es/instance/copy-within.js @@ -0,0 +1,8 @@ +var copyWithin = 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; +}; |
