Hi I have an object array like below
[{
one:{
a:1,
b:2
},
two:{
x:3,
y:4
}
},
{
three:{
i:5,
j:8
}
}]
I want the output like below
{one:[a,b],
two:[x,y],
three:[i,j]}
I've tried using Object.keys, map and all. I am confused. Could anyone suggest me the best way to get this.
[a:1,b:2]is not JavaScript. Consequently, there is no way to get such a result.