trivial and outdated NPM packages

array-each outdated npm logo

Reimplements the native Array.prototype.forEach() method.

Weekly Downloads
1,864,173
Dependencies
0
Latest Release
9 years ago
Switch to the native implementation.
Outdated
natively supported
since 13 years (chrome, firefox, safari, nodejs)

About

This dependency reimplements the native Array.prototype.forEach() method. It is supported by all modern browsers and Node.js versions since ES5 (2009).

// Loop over all elements in an array
const arr = [1, 2, 3, 4, 5];
arr.forEach(element => console.log(element));
// 1
// 2
// 3
// 4
// 5