GO-V.ORG
As seen in

CustomStateSet: has() method

Web Components

Web Components

The **`has()`** method of the CustomStateSet interface returns a 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 `CustomStateSet` object.

### Return value

A Boolean, `true` if `value` exists in the `CustomStateSet`.

## Specifications

## Browser compatibility

source: MDN Web Docs mirror · page

Cite this

"CustomStateSet: has() method". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/CustomStateSet/has

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·