how to remove duplicates in array typescript code example
Example 1: remove duplicates from array javascript
[...new Set(array)]
Example 2: javascript filter array remove duplicates
// Using the Set constructor and the spread syntax:
arrayWithOnlyUniques = [...new Set(arrayWithDuplicates)]