root
param1 = 1
param2 = 2
child
param1 = 1
root
param1 = 0
child
param2 = 2
root
param1 = 0
param2 = 2
child
param1 = 1
param2 = 2
const obj3 = {
...obj1,
...obj2,
child: {
...obj1.child,
...obj2.child
}
}