<!-- 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; [ArrayStartsWith](./case-definition-dsl.matchers.arrays.arraystartswith.md)

## matchers.arrays.ArrayStartsWith class

Matches an Array which starts with the provided array of matchers - any additional elements in the array are ignored.

**Signature:**

```typescript
export declare class ArrayStartsWith extends AnyMatcher
```

**Extends:** AnyMatcher

## Constructors

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

Constructor

</th><th>

Modifiers

</th><th>

Description

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

[(constructor)(matchers)](./case-definition-dsl.matchers.arrays.arraystartswith._constructor_.md)

</td><td>

</td><td>

Matches an Array which starts with the provided array of matchers - any additional elements in the array are ignored.

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

## Methods

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

Method

</th><th>

Modifiers

</th><th>

Description

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

[toJSON()](./case-definition-dsl.matchers.arrays.arraystartswith.tojson.md)

</td><td>

</td><td>

For non-TypeScript implementations (see `AnyMatcher.toJSON`<!-- -->)

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