arr = [{
status: "1",
name: "张三",
origin : [1]
},{
status: "1",
name: "张三",
origin : [2]
},{
status: "2",
name: "张三",
origin : [3]
},{
status: "2",
name: "张三",
origin : [4]
}]
怎样合并为
arr = [{
status: "1",
name: "张三",
origin : [1,2]
},{
status: "2",
name: "张三",
origin : [3,4]
}]