Javascript – Sort an array of duplicated items by placing the first occurrences first
I have an array of items that occur exactly twice, right next to eachother, like so: const arr = ['1', '1', '2', '2', '3', '3'] I need to sort it in a different order, so all unique values occur first,…