vituarvom / react-smart-utils

A simple, smart hooks and utility functions to make development easier
https://www.npmjs.com/package/react-smart-utils
13 stars 34 forks source link

Create deepMerge Utility Function #40

Open bharat-dussa opened 1 month ago

bharat-dussa commented 1 month ago

deepMerge

Merges two objects deeply, including nested objects.

File: src/utils/object/deepMerge/deepMerge.ts Test File: src/utils/object/deepMerge/deepMerge.test.ts

Parameters:

Returns:

Example:

deepMerge({ a: 1, b: { c: 2 } }, { b: { d: 3 } });  // { a: 1, b: { c: 2, d: 3 } }
RahulJOD commented 1 month ago

Hi, Please assign this issue to me. I want to contribute.

ShahAnuj2610 commented 1 month ago

hi @bharat-dussa , i can work on this

bharat-dussa commented 1 month ago

Thanks @ShahAnuj2610 for showing interest in contribution! Looking forward to your Implementation