I try to do this with 2 objects in Javascript
const a = {
  a: 1,
  b: {
    c: 1,
    d: 2
  }
};
const b = {
  b: {
    c: 3
  }
};
Object.assign({}, a, b)
and want to see such result
a: 1,
b: {
  c: 3,
  d: 2
}
but I got this
 a: 1,
 b: {
   c: 3
 }
Where is the mistake ? Is it posible to do or not ? How to "merge" 2 objects with deep structure
 
    