122
rated 0 times
[
123]
[
1]
/ answers: 1 / hits: 25716
/ 14 Years ago, thu, august 26, 2010, 12:00:00
What is an elegant way to take a javascript array, order by the frequency of the values, and then filter for uniques?
So,
[apples, oranges, oranges, oranges, bananas, bananas, oranges]
becomes
[oranges, bananas, apples]
More From » arrays