
Let obj1={
A: 1,
B: {
B1: [0, 0, 0, 3],
B2:3
},
C: [
{d1: [0, 1]},
{d3: [10, 11, 12, 12]},
]
}
Let obj2={
B: {
B1: [2, 2, 2, 3],
B3:4,
B5:5
},
C: [
{d1: [3, 1, 2, 2], d2: "abb"},
{d3: [12, 13, 14, 15, 20, 23, 23]},
],
E: {e1: "123"},
23, f: [1, 4]
Let obj3={
A: 1,
B: {
B1: [2, 2, 2, 3],
B2:3,
B3:4,
B5:5
},
C: [
{d1: [3, 1, 2, 2], d2: "abb"},
{d2: [12, 13, 14, 15, 20, 23, 23]},
],
E: {e1: "123"},
23, f: [1, 4]
}}
Consult how to treat and obj1 obj2 merged into obj3