---
title: CustomStateSet.values()
slug: Web/API/CustomStateSet/values
tags:
  - API
  - Method
  - Reference
  - values
  - CustomStateSet
browser-compat: api.CustomStateSet.values
---
{{DefaultAPISidebar("DOM")}}

The **`values()`** method of the {{domxref("CustomStateSet")}} interface returns a new iterator object that yields the values for each element in the `CustomStateSet` object in insertion order.

## Syntax

```js
CustomStateSet.values()
```

### Return Value

A new iterator object containing the values for each element in the given `CustomStateSet`, in insertion order.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}

