Comparing version 0.0.8 to 0.0.9
@@ -5,3 +5,3 @@ { | ||
"description": "Core JavaScript library for browser runtime", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"author": { | ||
@@ -8,0 +8,0 @@ "name": "fish" |
10
utils.js
@@ -104,4 +104,10 @@ /** | ||
if (destValue && typeof (destValue) === 'object' && typeof (value) === 'object') { | ||
result[i] = deepMerge(destValue, value, isDirect, depth); | ||
continue; | ||
if(Array.isArray(destValue) !== Array.isArray(value)){ // 继承和被继承的 一个是数组 一个是对象 | ||
if (typeof(value) === 'object' && (!isDirect) && isNeedClone(value)) value = deepClone(value); | ||
result[i] = value; | ||
continue; | ||
} else{ | ||
result[i] = deepMerge(destValue, value, isDirect, depth); | ||
continue; | ||
} | ||
} | ||
@@ -108,0 +114,0 @@ if (typeof(value) === 'object' && (!isDirect) && isNeedClone(value)) value = deepClone(value); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21298
682