We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
assignDeep
null
1 parent 57e8250 commit 9b385eaCopy full SHA for 9b385ea
lib/util.js
@@ -84,7 +84,7 @@ function assignDeep(object, value) {
84
const copy = {};
85
for (const key in object) {
86
copy[key] =
87
- typeof object[key] === 'object' ? assignDeep(object[key], value) : value;
+ typeof object[key] === 'object' && !isNullish(object[key]) ? assignDeep(object[key], value) : value;
88
}
89
return copy;
90
0 commit comments