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

The **`entries`** method of the {{domxref("CustomStateSet")}} interface returns a new {{jsxref("Iterator")}} object, containing an array of `[value,value]` for each element in the `CustomStateSet`.

## Syntax

```js
CustomStateSet.entries()
```

### Parameters

None.

### Return Value

A new iterator object that contains an array of `[value, value]` for each element in the `CustomStateSet`, in insertion order.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}

