Skip to content

Function: arrayUnique() ​

arrayUnique<T>(array, key?): T[]

Defined in: src/arrays.ts:298

Filter the array to only unique elements.

Type Parameters ​

T ​

T

Parameters ​

array ​

T[]

The source array

key? ​

keyof T

Optional key to use for uniqueness

Returns ​

T[]

The array with unique elements

Documentation of 1.0.13 , built from cf61d3b on 1.0.13 by pipeline #2985011498 on 2026-10-21.