Skip to content

Commit b10a62c

Browse files
committed
test(utils): add deepMerge spec test
1 parent 6fe6414 commit b10a62c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/src/utils/helpers.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,10 +461,9 @@ export const openURL = async (
461461
* Deep merges two objects, with source properties overriding target properties
462462
* @param target The target object to merge into
463463
* @param source The source object to merge from
464-
* @returns The merged object (new object, doesn't modify original)
464+
* @returns The merged object
465465
*/
466466
export const deepMerge = (target: any, source: any): any => {
467-
// Create a new object to avoid modifying the original
468467
const result = { ...target };
469468

470469
for (const key in source) {

0 commit comments

Comments
 (0)