.entries()

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

Explanation: The method that returns a new `Iterator` object containing key-value pairs for each array element. The key is the index of the element and the value is the element itself, allowing for easy iteration over both.

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 28
  • The safari browser supports this feature starting from version 8
Availability: