I have three objects:
0{
conta: "teste",
data: "01/01/2018"
},
1{
conta: "teste",
data: "01/03/2018"
}
2{
conta: "teste2",
data: "02/02/2019"
}
I need to group the objects that have the account with the same name, resulting in:
0{
conta: "teste"{
0 {
data:01/01/2018
},
1{
data:01/03/2018
}
}
1{
conta: "teste2" {
0{
data: "02/02/2019"
}
}