1
0
Fork 0
js-utils/docs/api/js-utils.mustfind.md

654 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