Back to Content

CustomStateSet: keys() method

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

latest421 B
Original Source

{{APIRef("Web Components")}}

The keys() method of the {{domxref("CustomStateSet")}} interface is an alias for {{domxref("CustomStateSet.values")}}.

Syntax

js-nolint
keys()

Parameters

None.

Return value

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

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}