1. var arr=[
    2. {
    3. name:"lisi",
    4. age:18,
    5. likes:["lol","足球"],
    6. alikes:["音乐","电影"],
    7. sex:"male"
    8. },
    9. {
    10. name:"lisi",
    11. age:18,
    12. likes:["ffl","球"],
    13. alikes:["bb","影"],
    14. sex:"male"
    15. },
    16. {
    17. name:"lisi",
    18. age:18,
    19. likes:["sdf","足球"],
    20. alikes:["xs","hjh"],
    21. sex:"male"
    22. }
    23. ]
    24. var sum=[]
    25. arr.forEach(item=>{
    26. console.log(item);
    27. var {name,age,likes,alikes}=item;
    28. likes.push(...alikes);
    29. console.log(likes);
    30. sum.push({
    31. name,
    32. age,
    33. likes,
    34. })
    35. })
    36. console.log(sum)

    image.png