> 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/object/length.md).

# Length

Checks if the given object has exactly the expected number of keys

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

const Validator = Schema.object().length(2);
```
