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

26 lines
654 B
Markdown

<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [@apextoaster/js-utils](./js-utils.md) &gt; [mustFind](./js-utils.mustfind.md)
## mustFind() function
Find a value matching the given predicate or throw.
<b>Signature:</b>
```typescript
export declare function mustFind<TVal>(list: Array<Optional<TVal>>, predicate: PredicateC1<TVal>): TVal;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| list | Array&lt;[Optional](./js-utils.optional.md)<!-- -->&lt;TVal&gt;&gt; | |
| predicate | PredicateC1&lt;TVal&gt; | |
<b>Returns:</b>
TVal