The JavaScript forEach method (Array.prototype.forEach) is a function that iterates through an array and will execute a callback that is provided to it on each iteration.
The forEach method was added in ECMAScript 5 specification and has full browser and node.js support.
The callback that is provided will be passed a value, an index and an array as arguments.