Home > @infiniteobjects/core-library-web > Arrays > uniq
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[];
Parameter | Type | Description |
---|---|---|
collection | T[] |
Returns:
T[]
This only works with primitives.