So, I have
{
'A': {
'B': 1
},
'B': {
'A': 1
}
}
And now I need to add more keys into 'B' so it would output
{
'A': {
'B': 1
},
'B': {
'A': 1,
'C': 2,
'D': 4
}
}
The final result needs to be a similar object and not an array. Obviously .push(), .splice, etc, does not work.
How do I do this?