Returns an array with any duplicates removed
unique<T>(arr: T[]): T[]
// Example:
unique([1, 2, 3, 3, 4, 4, 5]) //=> [1, 2, 3, 4, 5]
Returns an array with any duplicates removed
unique<T>(arr: T[]): T[]
// Example:
unique([1, 2, 3, 3, 4, 4, 5]) //=> [1, 2, 3, 4, 5]