I have data like this:
var data1 = ["RFCC","HCC","RFCC"];
var data2 = [1,1,1];
I want to remove unique duplicate and sum the number based on removed unique, so the result should be like this:
var data1 = ["RFCC","HCC"];
var data2 = [2,1];
If possible, maybe someone could help me? Thanks in advance.