---
url: https://docs.moqtail.dev/ts/api/model/functions/findProperty.md
---
# Function: findProperty()

> **findProperty**<`T`>(`properties`, `reader`): `T` | `undefined`

Finds the first property of `reader`'s type in a track or object property list and
returns it typed, or `undefined`. Unknown properties keep their raw key-value pair, so
a type the model doesn't know is still found.

## Type Parameters

### T

`T`

## Parameters

### properties

readonly ([`KeyValuePair`](../classes/KeyValuePair.md) | { `toKeyValuePair`(): [`KeyValuePair`](../classes/KeyValuePair.md); })\[] | `null` | `undefined`

### reader

[`PropertyReader`](../interfaces/PropertyReader.md)<`T`>

## Returns

`T` | `undefined`

## Example

```ts
const timeout = findProperty(subscribeOk.trackProperties, ObjectDeliveryTimeoutProperty)
```
