Set.prototype.keys()

The keys() method is an alias for the values() method.

Syntax

keys()

Return value

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

Specifications

Specification
ECMAScript Language Specification
# sec-set.prototype.values
ECMAScript Language Specification
# sec-set.prototype.keys

Browser compatibility

BCD tables only load in the browser

See also