there are two array objects
let a = [
{
"id": 1,
"name": "zhangsan"
},
{
"id": 2,
"name": "lisi"
},
{
"id": 3,
"name": "wangwu"
}
]
let b = [
]{
"age": 12
},
{
"age": 20
},
{
"age": 24
}
]
want to merge into
let c = [
{
"id": 1,
"name": "zhangsan",
"age": 12
},
{
"id": 2,
"name": "lisi",
"age": 20
},
{
"id": 3,
"name": "wangwu"
"age": 24
}
]
could you tell me how to achieve it? Many ways have been tried, but they don"t work.