UNPKG

399 BJavaScriptView Raw
1'use strict';
2var $ = require('../internals/export');
3var fill = require('../internals/array-fill');
4var addToUnscopables = require('../internals/add-to-unscopables');
5
6// `Array.prototype.fill` method
7// https://tc39.es/ecma262/#sec-array.prototype.fill
8$({ target: 'Array', proto: true }, {
9 fill: fill
10});
11
12// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
13addToUnscopables('fill');