UNPKG

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