mergeInplace
Call Signature
Section titled “Call Signature”mergeInplace<
T,U,R>(target,source,options?):R
Defined in: packages/core/src/object/merge-inplace.ts:53
Merge source into target, modifying it.
Shallow by default: a key present in both takes the source’s value whole.
With recursive, two mergeable values are merged instead — see
MergeOptions.recursive for what that costs.
Type Parameters
Section titled “Type Parameters”T
U
R
Parameters
Section titled “Parameters”target
Section titled “target”T
Value to merge into; modified when it is mergeable
source
Section titled “source”U
Value to merge from
options?
Section titled “options?”MergeOptions & object
Merge options
Returns
Section titled “Returns”R
target where it could be merged into, otherwise the source value
Call Signature
Section titled “Call Signature”mergeInplace<
T,U,R>(target,source,options):R
Defined in: packages/core/src/object/merge-inplace.ts:58
Merge source into target, modifying it.
Shallow by default: a key present in both takes the source’s value whole.
With recursive, two mergeable values are merged instead — see
MergeOptions.recursive for what that costs.
Type Parameters
Section titled “Type Parameters”T
U
R
Parameters
Section titled “Parameters”target
Section titled “target”T
Value to merge into; modified when it is mergeable
source
Section titled “source”U
Value to merge from
options
Section titled “options”MergeOptions & object
Merge options
Returns
Section titled “Returns”R
target where it could be merged into, otherwise the source value