Back to Content

FontFaceSet: has() method

files/en-us/web/api/fontfaceset/has/index.md

latest510 B
Original Source

{{APIRef("CSS Font Loading API")}}{{AvailableInWorkers}}

The has() method of the {{domxref("FontFaceSet")}} interface returns a {{jsxref("Boolean")}} asserting whether an element is present with the given value.

Syntax

js-nolint
has(value)

Parameters

  • value
    • : The value to test for in the FontFaceSet object.

Return value

A {{jsxref("Boolean")}}, true if value exists in the FontFaceSet.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}