So I have 2 arrays like these ...
var browser_names = ["Firefox", "Maxthon", "Opera", "Opera", "Chrome", "Chrome", "Edge", "Firefox"]
var user_count = [3, 3, 3, 3, 7, 20, 94, 142]
I want results like these
var result_browser_names = ["Firefox", "Maxthon", "Opera", "Chrome", "Edge"]
var result_user_count = [145, 3, 6, 27, 94]
As you can see 'result_browser_names' contains unique browser name values & 'result_user_count' contains 'sum of users' for each type of browser.
I have seen this solution, which works great for a single array. In my case I have 2 arrays ....
Any help is very much appreciated. Thanks