648 B
648 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<Optional<TVal>>, predicate: PredicateC1<TVal>): TVal;
Parameters
Parameter | Type | Description |
---|---|---|
list | Array<Optional<TVal>> |
|
predicate | PredicateC1<TVal> |
Returns:
TVal