English
Appearance
Remove duplicate elements from the array
function uniq<T>(arr: T[]): any[];
import { uniq } from 'rattail' const arr = [1, 4, 4, 5, 6, 6] console.log(uniq(arr)) // [1, 5]
arr
The array after deduplication