During work I have problem with this task, here is my data :
var order = [
{area: "RFCC",ru: "R401",tot: 3,unit: "OFFSITE"},
{area: "RFCC",ru: "R401",tot: 1,unit: "RCU"}];
I want the result should be like this :
var order = [
{area:["RFCC","RFCC"],ru:["R401","R401"],tot:[4],unit:["OFFSITE","RCU"]}]
Anyone know solution for this? Thanks in advance.