mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
Update deep-assign.ts (#3103)
This commit is contained in:
parent
07d02363f2
commit
1a7daecdbc
@ -10,7 +10,7 @@ type Object = {
|
|||||||
function assignKey(to: Object, from: Object, key: string) {
|
function assignKey(to: Object, from: Object, key: string) {
|
||||||
const val = from[key];
|
const val = from[key];
|
||||||
|
|
||||||
if (!isDef(val) || (hasOwnProperty.call(to, key) && !isDef(to[key]))) {
|
if (!isDef(val)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user