I have a 2D array like this one in JavaScript:
result=[["user1", "java"], ["user2", "python"],["user1", "java"], ["user1", "C++"], ["user1", "java"], ["user2", "Python"]....]
you can see that ["user1", "java"]
comes 3 times and ["user2", "python"]
2 times.
I want to clean this array so that every couple of element must appear only once.it means that if "user1" can appear again, it should be with another language but not with "java". can some one help me?