es.array.fill.js 399 B

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