es.array.copy-within.js 442 B

123456789101112
  1. var $ = require('../internals/export');
  2. var copyWithin = require('../internals/array-copy-within');
  3. var addToUnscopables = require('../internals/add-to-unscopables');
  4. // `Array.prototype.copyWithin` method
  5. // https://tc39.github.io/ecma262/#sec-array.prototype.copywithin
  6. $({ target: 'Array', proto: true }, {
  7. copyWithin: copyWithin
  8. });
  9. // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
  10. addToUnscopables('copyWithin');