set.any()
Test if any Set member passes the test of the given function.
Return value
Type | Description |
---|---|
Status of predicate applied to every Set element: |
Examples
// `toSet()` converts an Array to a Set.
let set = [1, 2, 3].toSet()
set.any(v => v == 2)
true
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!