---
jsApi: true
title: "[F] getMaxValue"

---
```ts
getMaxValue(program, target): number | undefined
```

## Parameters

| Parameter | Type |
| :------ | :------ |
| `program` | [`Program`](../interfaces/Program.md) |
| `target` | [`Type`](../type-aliases/Type.md) |

## Returns

`number` \| `undefined`
