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.
2 parents 57e8250 + 9b385ea commit 6e76387Copy full SHA for 6e76387
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