i have an array, const colors = ['red,'blue','green','yellow','red','blue'];
How should i remove all the duplicate colors in this array ?
I tried various methods , but those were very lengthy. i am expecting a straightforward solution for this problem.