<!-- 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; [ArrayEachEntryMatchesWithExample](./case-definition-dsl.matchers.arrays.arrayeachentrymatcheswithexample.md) &gt; [(constructor)](./case-definition-dsl.matchers.arrays.arrayeachentrymatcheswithexample._constructor_.md)

## matchers.arrays.ArrayEachEntryMatchesWithExample.(constructor)

Matches an array where each element matches the provided matcher, but with a custom example for the whole array. This example must still pass the provided matcher

**Signature:**

```typescript
constructor(matcher: AnyMatcherOrData, example: Array<AnyMatcherOrData>);
```

## Parameters

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

Parameter

</th><th>

Type

</th><th>

Description

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

matcher

</td><td>

AnyMatcherOrData

</td><td>

The matcher for each entry in the array

</td></tr>
<tr><td>

example

</td><td>

Array&lt;AnyMatcherOrData&gt;

</td><td>

An optional example of the whole array to return

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