You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The **`has()`** method of the {{domxref("CustomStateSet")}} 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 `CustomStateSet` object.
### Return value
A {{jsxref("Boolean")}}, `true` if `value` exists in the `CustomStateSet`.