FontFaceSet: forEach() メソッド

forEach()FontFaceSet インターフェイスのプロパティで、 FontFaceSet オブジェクトの各値に対して指定された関数を実行します。

構文

js
forEach(callbackFn)
forEach(callbackFn, thisArg)

引数

callbackFn

各要素に対して実行する関数で、 引数を 3 つ取ります。

value, key

FontFaceSet で処理されている現在の要素。 FontFaceSet にはキーがないので、両方の引数に値が渡されます。

set

forEach() が呼び出された FontFaceSet です。

thisArg

callbackFn 実行時に this として使用する値です。

返値

undefined です。

仕様書

No specification found

No specification data found for api.FontFaceSet.forEach.
Check for problems with this page or contribute a missing spec_url to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.

ブラウザーの互換性

BCD tables only load in the browser