<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@contract-case/case-definition-dsl](./case-definition-dsl.md) &gt; [matchers](./case-definition-dsl.matchers.md) &gt; [arrays](./case-definition-dsl.matchers.arrays.md) &gt; [ArrayLength](./case-definition-dsl.matchers.arrays.arraylength.md) &gt; [(constructor)](./case-definition-dsl.matchers.arrays.arraylength._constructor_.md)

## matchers.arrays.ArrayLength.(constructor)

Matches an Array whose length is within the specified range (or 1-infinity if not specified).

**Signature:**

```typescript
constructor(options: ArrayLengthOptions);
```

## Parameters

<table><thead><tr><th>

Parameter

</th><th>

Type

</th><th>

Description

</th></tr></thead>
<tbody><tr><td>

options

</td><td>

[ArrayLengthOptions](./case-definition-dsl.matchers.arrays.arraylengthoptions.md)

</td><td>

An `ArrayLengthOptions` object with optional minLength (default 1) and maxLength (default infinity) properties.

</td></tr>
</tbody></table>
