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