massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / modules / es.typed-array.copy-within.js
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
6 var u$ArrayCopyWithin = uncurryThis($ArrayCopyWithin);
7 var aTypedArray = ArrayBufferViewCore.aTypedArray;
8 var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
9
10 // `%TypedArray%.prototype.copyWithin` method
11 // https://tc39.es/ecma262/#sec-%typedarray%.prototype.copywithin
12 exportTypedArrayMethod('copyWithin', function copyWithin(target, start /* , end */) {
13   return u$ArrayCopyWithin(aTypedArray(this), target, start, arguments.length > 2 ? arguments[2] : undefined);
14 });