massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-prettier / node_modules / core-js / modules / es.typed-array.fill.js
1 'use strict';
2 var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
3 var call = require('../internals/function-call');
4 var $fill = require('../internals/array-fill');
5
6 var aTypedArray = ArrayBufferViewCore.aTypedArray;
7 var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
8
9 // `%TypedArray%.prototype.fill` method
10 // https://tc39.es/ecma262/#sec-%typedarray%.prototype.fill
11 exportTypedArrayMethod('fill', function fill(value /* , start, end */) {
12   var length = arguments.length;
13   return call(
14     $fill,
15     aTypedArray(this),
16     value,
17     length > 1 ? arguments[1] : undefined,
18     length > 2 ? arguments[2] : undefined
19   );
20 });