I have an an array of objects that contains a bunch of entires, but I want to group together some of them dynamically.
My Object could look like this
[{
Beton: "120"
Asfalt: "80"
ConstructionId: "(10)4"
Name: "Pælefundamenter og brøndfundamenter"
ParentId : "10"
ParentName: "Bygningsbasis, terræn"
}]
so now i want the object to look like this
[{
ConstructionId: "(10)4"
Name: "Pælefundamenter og brøndfundamenter"
ParentId : "10"
ParentName: "Bygningsbasis, terræn"
materialLifeTime: {
Beton: "120",
Asfalt: "80",
}
}]
I have tried a bunch, but can't make it work.
Thank you so much, Sillas