I have 2 objects that I want merge together
Object1 = {'1234':{name: 'One'},'4567': {name: 'two'}}
Object2 = {'1234':{id: 1234, location: 'paris'},'4567':{id: 4567, location: 'london'}}
If the id match the object key , merge it it.
I want a result like this:
Object3 = {'1234':{id: 1234, name: 'One', location: 'paris'},'4567':{id: 4567, name: 'two', location: 'london'}}
If I try spread operator or Object.assign , it overwrite the previous object.