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.
1 parent 2044d83 commit 6bbc2fbCopy full SHA for 6bbc2fb
TypeScript/deep-merge-of-two-objects.ts
@@ -11,7 +11,7 @@ function deepMerge(obj1: any, obj2: any): any {
11
return obj2;
12
}
13
14
- var result = Array.isArray(obj1) ? [] : {};
+ let result = Array.isArray(obj1) ? [] : {};
15
Object.keys(obj1).forEach(key => {
16
if (obj2[key] === undefined) {
17
result[key] = obj1[key];
0 commit comments