any
Checks if the provided predicate function returns true
for at least one element in a collection.
- Use
Array.prototype.some()
to test if any elements in the collection returntrue
based onfn
. - Omit the second argument,
fn
, to useBoolean
as a default.