+ 3
How to remove duplicate value in array?
Without deleting the first value.. 😊😊
2 Respostas
+ 3
In Java and C++ you can use a set, which by definition has no duplicates.
Here's a solution for JavaScript:
https://stackoverflow.com/questions/9229645/remove-duplicate-values-from-js-array?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
0
You create an array of elements you've already seen.