I was studying JS in CodeWars and I didn't find a method to remove all duplicated elements in an array. I need to do exactly this:
a = [1,2,2,2,3,4,5,6,6,7] b = [1,2,7,8,9]
Return a unique array = [3,4,5,8,9] delete all the duplicated items, including the first occurrence
How can I do this? I already use for, if, forEach, but no success.