Get the array index of the first element that matches the given value.
indexOf() method searches, left-to-right, for the element that
matches value and returns the index of the element if a match is
If the optional index is included, the method searches right-to-left starting at index and returns the matching index, inclusive.
Index of element that matches value or
Is this article helpful?
Tell Fauna how the article can be improved:
Thank you for your feedback!