getUniqueArray()function
getUniqueArray(list: PossibleArray<T>): ImmutableArray<T>
| Param | Type | |
|---|---|---|
list | PossibleArray<T> | The array or iterable to deduplicate. required |
| Return | |
|---|---|
ImmutableArray<T> | A new array with duplicate items removed, or the same array if all items were already unique. |
Return an array of the unique items in an array.
Examples
getUniqueArray([1, 2, 2, 3]) // [1, 2, 3]