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

26 lines
645 B
Markdown
Raw Permalink Normal View History

2020-03-29 13:43:52 +00:00
<!-- 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<Maybe<TVal>>, predicate: PredicateC1<TVal>): TVal;
2020-03-29 13:43:52 +00:00
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| list | Array&lt;[Maybe](./js-utils.maybe.md)<!-- -->&lt;TVal&gt;&gt; | |
| predicate | PredicateC1&lt;TVal&gt; | |
2020-03-29 13:43:52 +00:00
<b>Returns:</b>
TVal
2020-03-29 13:43:52 +00:00