ArrayUtility.Find Manual     Reference     Scripting  
Scripting > Editor Classes > ArrayUtility
ArrayUtility.Find

static function Find.<T> (array : T[], match : Predicate<T>) : T

Returns

T - The element, if found; otherwise, the default value for type T.

Description

Find the first element that satisfies the predicate