KeyboardLayoutMap: forEach() method
The forEach() method of the KeyboardLayoutMap interface executes a provided function once for each element of the map.
Syntax
forEach(callbackFn)
forEach(callbackFn, thisArg)
Parameters
-
callbackFn
-
The function to execute for each element, taking three arguments:
-
currentValue
-
The value of the current element being processed.
index Optional
-
The index of the current element being processed.
array Optional
-
The KeyboardLayoutMap that forEach() is being called on.
thisArg Optional
-
Value to use as this (i.e., the reference Object) when executing callback.
Return value
Specifications
Browser compatibility
|
Desktop |
Mobile |
|
Chrome |
Edge |
Firefox |
Internet Explorer |
Opera |
Safari |
WebView Android |
Chrome Android |
Firefox for Android |
Opera Android |
Safari on IOS |
Samsung Internet |
forEach |
69 |
79 |
No |
No |
56 |
No |
69 |
69 |
No |
48 |
No |
10.0 |