array.lastIndexWhere()
Get the index of the last Array element that matches the predicate.
Signature
lastIndexWhere(predicate: () => Boolean | Null) => Number | Null
lastIndexWhere(predicate: () => Boolean | Null, end: Number) => Number | Null
Description
The lastIndexWhere()
method returns the Array index of the element
that matches the predicate.
Return value
Type | Description |
---|---|
Index of element that matches predicate or |
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!