Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。
forEach() は KeyboardLayoutMap インターフェイスのメソッドで、指定された関数をマップの各要素に対して一度ずつ実行します。
各要素に対して実行する関数で、 3 つの引数を取ります。
currentValue現在処理中の要素の値です。
index 省略可現在処理中の要素のインデックスです。
array 省略可forEach() が呼び出される KeyboardLayoutMap です。
thisArg 省略可callback を実行する際に this (すなわち参照する Object)として使用する値です。
なし (undefined)。
| ECMAScript® 2027 Language Specification # sec-map.prototype.foreach |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2025年6月24日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.