FontFaceSet: has() Methode

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.

Hinweis: Diese Funktion ist in Web Workers verfügbar.

Die has() Methode der FontFaceSet Schnittstelle gibt ein Boolean zurück, das angibt, ob ein Element mit dem angegebenen Wert vorhanden ist.

Syntax

js
has(value)

Parameter

value

Der Wert, der im FontFaceSet-Objekt überprüft werden soll.

Rückgabewert

Ein Boolean, true wenn der value im FontFaceSet vorhanden ist.

Spezifikationen

No specification found

No specification data found for api.FontFaceSet.has.
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.

Browser-Kompatibilität

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
has

Legend

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

Full support
Full support