.findIndex()

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

Explanation: The method that returns the index of the first element in an array that satisfies a condition defined by a function. If no elements match, it returns -1.

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