Creates a duplicate-free version of an array.
Type of the array elements.
array
The array to inspect.
The new duplicate free array.
unique([1, 1, 2, 1, 3, 4, 4, 5]);// => [1, 2, 3, 4, 5] Copy
unique([1, 1, 2, 1, 3, 4, 4, 5]);// => [1, 2, 3, 4, 5]
Generated using TypeDoc
Creates a duplicate-free version of an array.