このデモのソースファイルは GitHub リポジトリに格納されています。デモプロジェクトに協力したい場合は、 https://github.com/mdn/interactive-examples をクローンしてプルリクエストを送信してください。 構文 arr.forEach(callback(currentValue [, index [, array]])[, thisArg]) 引数 callback 各要素に対して実行するコールバック関数で、1つから3つの引数を受け付けます。 currentValue 現在処理されている配列の要素です。 index Optional 配列内の currentValue の添字です。 array Optional forEach() が呼び出されている配列です。 thisArg Optional callback 内で this として使用する値です
![Array.prototype.forEach() - JavaScript | MDN](https://cdn-ak-scissors.b.st-hatena.com/image/square/e51bd6dc33a667d35eb4146698a198e55ff92d6e/height=288;version=1;width=512/https%3A%2F%2Fdeveloper.mozilla.org%2Fstatic%2Fimg%2Fopengraph-logo.72382e605ce3.png)