count repetitive same values
count repetitive same values
Hi,
how can I count repetitive same values ?
for example:
var arr = [2, 2, 2,5, 2, 2, 4, 5, 5, 5, 9,4,4];
I want to get:
2 > 3
5 > 1
2 > 2
4 > 1
5 > 3
9 > 1
4 > 2
I will appreciate if you provide any hint
regards
Topic Participants
ahmettemiz88
kbwood.au