Recursively merges two objects (A and B) using deepmerge, supporting "fullReplace" semantics and custom array handling.
If fullReplace: true is set on any nested object, that object is entirely replaced. Arrays are merged with intelligent slot or append logic.
fullReplace: true
The base object (left-hand value).
The incoming object to merge (right-hand value).
Optional
Merge strategy options.
The merged, deeply combined object.
const merged = deepMergeWithFullReplace({a: 1}, {a: 2, fullReplace: true}); Copy
const merged = deepMergeWithFullReplace({a: 1}, {a: 2, fullReplace: true});
Recursively merges two objects (A and B) using deepmerge, supporting "fullReplace" semantics and custom array handling.
If
fullReplace: true
is set on any nested object, that object is entirely replaced. Arrays are merged with intelligent slot or append logic.