mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
Update deep-assign.ts (#3103)
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user