Open Leon2xiaowu opened 3 years ago
when I ran the following code, I was surprised by the result
const target = {} deepExtend( target, { series: [{ center: [1, 2], other: 1, dif: 2 }] }, { series: [{ center: [3, 4] }] } ) console.log(target, 'reuslt')
this outputs {"series":[{"center":[3,4]}]}.
{"series":[{"center":[3,4]}]}
Shouldn't the correct result be {"series":[{"center":[3,4],"other": 1,"dif": 2}]}?
{"series":[{"center":[3,4],"other": 1,"dif": 2}]}
when I ran the following code, I was surprised by the result
this outputs
{"series":[{"center":[3,4]}]}
.Shouldn't the correct result be
{"series":[{"center":[3,4],"other": 1,"dif": 2}]}
?