function unique unique<T>(list: T[]): T[] Returns the distinct values from a list. Examples Example 1 const myList = [1, 2, 3, 3]; unique(myList); // [1, 2, 3]; Type Parameters T Parameters list: T[] Return Type T[]