UNPKG

530 BJavaScriptView Raw
1'use strict';
2var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
3var $copyWithin = require('../internals/array-copy-within');
4
5var aTypedArray = ArrayBufferViewCore.aTypedArray;
6
7// `%TypedArray%.prototype.copyWithin` method
8// https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.copywithin
9ArrayBufferViewCore.exportProto('copyWithin', function copyWithin(target, start /* , end */) {
10 return $copyWithin.call(aTypedArray(this), target, start, arguments.length > 2 ? arguments[2] : undefined);
11});