es.array.for-each.js 361 B

12345678910
  1. 'use strict';
  2. var $ = require('../internals/export');
  3. var forEach = require('../internals/array-for-each');
  4. // `Array.prototype.forEach` method
  5. // https://tc39.es/ecma262/#sec-array.prototype.foreach
  6. // eslint-disable-next-line es-x/no-array-prototype-foreach -- safe
  7. $({ target: 'Array', proto: true, forced: [].forEach != forEach }, {
  8. forEach: forEach
  9. });