CustomStateSet: entries() method

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 Standard
# custom-state-pseudo-class

Browser compatibility

desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
entries