このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。

View in English Always switch to English

FontFaceSet: has() メソッド

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月.

has()FontFaceSet インターフェイスのメソッドで、指定された値を持つ要素が存在するかどうかを検査して Boolean を返します。

構文

js
has(value)

引数

value

FontFaceSet オブジェクトでテストする値。

返値

論理値で、 valueFontFaceSet に存在する場合に true となります。

仕様書

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

ブラウザーの互換性