TypeScriptArraysome

Tests whether at least one element in the array passes the provided function.

Syntax

array.some(predicate): boolean