var arr=[
{
name:"lisi",
age:18,
likes:["lol","足球"],
alikes:["音乐","电影"],
sex:"male"
},
{
name:"lisi",
age:18,
likes:["ffl","球"],
alikes:["bb","影"],
sex:"male"
},
{
name:"lisi",
age:18,
likes:["sdf","足球"],
alikes:["xs","hjh"],
sex:"male"
}
]
var sum=[]
arr.forEach(item=>{
console.log(item);
var {name,age,likes,alikes}=item;
likes.push(...alikes);
console.log(likes);
sum.push({
name,
age,
likes,
})
})
console.log(sum)