es.array.fill.js 385 B

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