想把这个数据结构修改成下面的数据结构应该如何修改?
这是数据
let arr1 = [
{
name: '12421412',
ids: ['erqre']
},
{
name: '12421412',
ids: ['werwer']
},
{
name: '12421412',
ids: ['wetweew']
},
{
name: '12421413',
ids: ['wetweew']
},
{
name: '12421413',
ids: ['wetweew']
},
{
name: '12421413',
ids: ['wetweew']
}
]