Skip to content

Commit 71f5f6f

Browse files
authored
fix(core): mutating object merger (#3454)
1 parent 814c33f commit 71f5f6f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
+4-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
export function daffDictAssignMerger<T extends Record<string, unknown> = Record<string, unknown>>(a: T, b: T): T {
2-
return Object.assign(a, b);
2+
return {
3+
...a,
4+
...b,
5+
};
36
}

0 commit comments

Comments
 (0)