Update deep-assign.ts (#3103)

This commit is contained in:
谢俊
2019-04-08 17:18:36 +08:00
committed by neverland
parent 07d02363f2
commit 1a7daecdbc

View File

@@ -10,7 +10,7 @@ type Object = {
function assignKey(to: Object, from: Object, key: string) {
const val = from[key];
if (!isDef(val) || (hasOwnProperty.call(to, key) && !isDef(to[key]))) {
if (!isDef(val)) {
return;
}