firstWhere()
Get the first matching value from the Array.
Signature
firstWhere(predicate: () => Boolean | Null): T | Null
firstWhere(predicate: (val: T) => Boolean | Null): T | Null
Description
The firstWhere()
method gets the first matching value from the array,
or null
when no values match.
Parameters
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!