Home > @wixc3/common > find
Signature:
export declare function find<T>(iterable: Nullable<Iterable<T>>, predicate: Predicate<T>): T | undefined;
Parameter | Type | Description |
---|---|---|
iterable | [Nullable](/core3-utils/common.nullable.html)<Iterable<T>> | |
predicate | [Predicate](/core3-utils/common.predicate.html)<T> |
Returns:
T | undefined
the first element the satisfies the predicate