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 January 2020.

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.

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
forEach

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support