Back to Content

CustomStateSet: entries() method

files/en-us/web/api/customstateset/entries/index.md

latest558 B
Original Source

{{APIRef("Web Components")}}

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

Syntax

js-nolint
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}}