unique values in array angular code example
Example: angular 10 get unique values from array of objects
Array.from(new Set(yourArray.map((item: any) => item.name)));
Array.from(new Set(yourArray.map((item: any) => item.name)));