44a02fffdce47c77288f95b340101c79642ab99537405ebf99939bd3f652a9a42ad92388179edc04b9d2c05e5fa4c14822990ba7da57a8ef7a4061fb17beec 713 B

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