0๐
โ
I hope this helps you.
For example your array like this
products: ['Oculus', 'Google Glass', 'Microsoft Hololens', 'Oculus', 'Varjo']
and function for remove duplication is below
removeDuplicates () {
this.products = [ ...new Set(this.products) ]
}
Source:stackexchange.com