CustomStateSet: entries() method

Baseline
Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since May 2024.

The entries method of the CustomStateSet interface returns a new iterator object, containing an array of [value,value] for each element in the CustomStateSet.

Syntax

js
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

Specification
HTML
# custom-state-pseudo-class

Browser compatibility