Removes duplicate values from an array.
The type of array elements.
The array to process.
A new array with only unique values.
unique([1, 2, 2, 3]); // [1, 2, 3] Copy
unique([1, 2, 2, 3]); // [1, 2, 3]
Removes duplicate values from an array.