cafe-utility 10.8.0 → 10.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +5 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -536,7 +536,11 @@ function deepMergeInPlace(target, source) {
|
|
|
536
536
|
deepMergeInPlace(target[key], source[key])
|
|
537
537
|
} else if (Array.isArray(source[key])) {
|
|
538
538
|
target[key] = [...source[key]]
|
|
539
|
-
} else
|
|
539
|
+
} else if (
|
|
540
|
+
(source[key] !== null && source[key] !== undefined) ||
|
|
541
|
+
target[key] === null ||
|
|
542
|
+
target[key] === undefined
|
|
543
|
+
) {
|
|
540
544
|
target[key] = source[key]
|
|
541
545
|
}
|
|
542
546
|
}
|