> For the complete documentation index, see [llms.txt](https://schema.js.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://schema.js.org/documents/array/max.md).

# Max

Checks if the given array has less than or the same expected number of items

```typescript
import Schema from "@rapidom/schema";

const Validator = Schema.array().max(2);
```
