.keys()

Term side of the Card
Topic: Set
Unit title: .keys()
Categories: Method
Explanation side of the Card

Explanation: The method that returns a new `Iterator` object containing the keys of a `Set` object, which are identical to its values. It provides a way to iterate over the elements, although its functionality is similar to `.values()` since a `Set` object only contains values.

Browser compatibility:
  • The chrome browser supports this feature starting from version 38
  • The edge browser supports this feature starting from version 12
  • The firefox browser supports this feature starting from version 24
  • The safari browser supports this feature starting from version 8
Availability: