MDN self-hosted library · e01.org

CustomStateSet: has() method

Web Components

no runnable cells web-api-instance-method upstream source

Web Components

The has() method of the CustomStateSet interface returns a Boolean asserting whether an element is present with the given value.

Syntax

has(value)

Parameters

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

Return value

A Boolean, true if value exists in the CustomStateSet.

Specifications

Browser compatibility