# Function: array()

> > **array**\<`T`\>(`arb`, `constraints?`): [`Arbitrary`](../classes/Arbitrary.md)\<`T`[]\>

# Function: array()

> **array**\<`T`\>(`arb`, `constraints?`): [`Arbitrary`](../classes/Arbitrary.md)\<`T`[]\>

Defined in: [packages/fast-check/src/arbitrary/array.ts:78](https://github.com/dubzzz/fast-check/blob/4663db899d411b24434189b8e560b5ecefc93f23/packages/fast-check/src/arbitrary/array.ts#L78)

For arrays of values coming from `arb`

## Type Parameters

| Type Parameter |
| ------ |
| `T` |

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `arb` | [`Arbitrary`](../classes/Arbitrary.md)\<`T`\> | Arbitrary used to generate the values inside the array |
| `constraints` | [`ArrayConstraints`](../interfaces/ArrayConstraints.md) | Constraints to apply when building instances (since 2.4.0) |

## Returns

[`Arbitrary`](../classes/Arbitrary.md)\<`T`[]\>

## Remarks

Since 0.0.1
