stack

Home > @infiniteobjects/core-library-web > Arrays > uniq

Arrays.uniq() method

Creates a duplicate-free version of an array, The order of result values is determined by the order they occur in the array.

Signature:

static uniq<T>(collection: T[]): T[];

Parameters

Parameter Type Description
collection T[]  

Returns:

T[]

Remarks

This only works with primitives.