there is an array like this
[
{
id:1,
info: {name:"abc"}
show: true
},
{
id:2,
info: {name:"abc"}
show: true
},
{
id:3,
info: {name:"qq"}
show: true
}
]
then I want to reorganize array to put the same info.name in the same object like this. Is there a way to do that?
[
{
{
id:1,
info: {name:"abc"}
show: true
},
{
id:2,
info: {name:"abc"}
show: true
},
},
{
id:3,
info: {name:"qq"}
show: true
}
]