FontFaceSet: forEach() メソッド
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2020年1月.
forEach()
は FontFaceSet
インターフェイスのプロパティで、 FontFaceSet
オブジェクトの各値に対して指定された関数を実行します。
構文
js
forEach(callbackFn)
forEach(callbackFn, thisArg)
引数
callbackFn
-
各要素に対して実行する関数で、 引数を 3 つ取ります。
value
,key
-
FontFaceSet
で処理されている現在の要素。FontFaceSet
にはキーがないので、両方の引数に値が渡されます。 set
-
forEach()
が呼び出されたFontFaceSet
です。
thisArg
-
callbackFn
実行時にthis
として使用する値です。
返値
undefined です。
仕様書
This feature does not appear to be defined in any specification.>ブラウザーの互換性
Loading…