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 returntruebased onfn. - Omit the second argument,
fn, to useBooleanas a default.