.entries()

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

Explanation: The method that returns an iterator object containing an array of `[value, value]` pairs for each element in the `Set` object. Since a `Set` object only stores unique values without associated keys, the value is repeated in each pair. This design keeps the API similar to that of the `Map` object.

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: