Skip to content

deepMerge

deepMerge<T>(target, source): T

Defined in: packages/store-kit/src/objects/state.ts:107

Recursively merges the properties of a source object into a target object. If both the target and source properties are objects, it merges their properties deeply. If not, it overwrites the target property with the source property.

Type Parameters

T

Parameters

target

T

The target object to merge properties into.

source

T

The source object whose properties are to be merged into the target object.

Returns

T

The merged target object.