es.array.copy-within.js 442 B

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