UNPKG

477 BJavaScriptView Raw
1'use strict';
2var ArrayBufferViewCore = require('../internals/array-buffer-view-core');
3var $fill = require('../internals/array-fill');
4
5var aTypedArray = ArrayBufferViewCore.aTypedArray;
6
7// `%TypedArray%.prototype.fill` method
8// https://tc39.github.io/ecma262/#sec-%typedarray%.prototype.fill
9// eslint-disable-next-line no-unused-vars
10ArrayBufferViewCore.exportProto('fill', function fill(value /* , start, end */) {
11 return $fill.apply(aTypedArray(this), arguments);
12});