copy-within.js 274 B

12345678
  1. var copyWithin = require('../array/virtual/copy-within');
  2. var ArrayPrototype = Array.prototype;
  3. module.exports = function (it) {
  4. var own = it.copyWithin;
  5. return it === ArrayPrototype || (it instanceof Array && own === ArrayPrototype.copyWithin) ? copyWithin : own;
  6. };