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!