Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. Web APIs
  3. MediaKeyStatusMap
  4. forEach()

MediaKeyStatusMap: forEach() method

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since ⁨March 2019⁩.

TheforEach() method of theMediaKeyStatusMap interface calls callback once for each key-value pairin the status map, in insertion order. If an argument is present it will be passed tothe callback.

Syntax

js
forEach(callbackFn)forEach(callbackFn, thisArg)

Parameters

callbackFn

Function to execute for each element, taking three arguments:

currentValue

The current element being processed in the array.

indexOptional

The index of the current element being processed in the array.

arrayOptional

Which arrayforEach() is being applied to.

thisArgOptional

Value used asthis when executingcallback.

Return value

None (undefined).

Specifications

This feature does not appear to be defined in any specification.

Browser compatibility

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp