645 B
645 B
Home > @apextoaster/js-utils > mustFind
mustFind() function
Find a value matching the given predicate or throw.
Signature:
export declare function mustFind<TVal>(list: Array<Maybe<TVal>>, predicate: PredicateC1<TVal>): TVal;
Parameters
Parameter | Type | Description |
---|---|---|
list | Array<Maybe<TVal>> | |
predicate | PredicateC1<TVal> |
Returns:
TVal