> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nanoforge.eu/llms.txt
> Use this file to discover all available pages before exploring further.

# ArrayUnique

> Checks if all array's values are unique. Comparison for objects is reference-based. If null or undefined is given then this function returns false.

> **ArrayUnique**\<`T`>(`identifierOrOptions?`, `validationOptions?`): `PropertyDecorator`

Defined in: node\_modules/.pnpm/class-validator\@0.14.4/node\_modules/class-validator/types/decorator/array/ArrayUnique.d.ts:13

Checks if all array's values are unique. Comparison for objects is reference-based.
If null or undefined is given then this function returns false.

## Type Parameters

### T

`T` = `any`

## Parameters

### identifierOrOptions?

`ValidationOptions` | `ArrayUniqueIdentifier`\<`T`>

### validationOptions?

`ValidationOptions`

## Returns

`PropertyDecorator`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.