# max!

## `Range.prototype.max`

The `max` read-only property is the maximum range of generic type variable [`Max`](https://range.angular-package.dev/generic-type-variables#range-less-than-min-max-step-greater-than-1) of a specified [`Range`](https://range.angular-package.dev/range) object.

{% code title="range.class.ts" %}

```typescript
public readonly max!: Max;
```

{% endcode %}

### Type

#### [<mark style="color:green;">`Max`</mark>](https://range.angular-package.dev/generic-type-variables#range-less-than-min-max-step-greater-than-1)

## Example usage

```typescript
// Example usage.
import { Range } from '@angular-package/range';

// Create new instance.
// Returns Range {min: 4, max: 27, value: 5} of Range<4, 27, 1>.
const range = new Range(4, 27, 5);

// Returns 27 of type 27.
range.max;
```
