merge
Call Signature
Section titled “Call Signature”merge<
T,U,R>(target,source,options?):R
Defined in: packages/core/src/object/merge.ts:53
Merge two values into a new one.
Shallow by default: a key present in both takes the source’s value whole.
With recursive, two mergeable values are merged instead — see
[“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
source
Section titled “source”U
Value to merge from
options?
Section titled “options?”MergeOptions & object
Merge options
Returns
Section titled “Returns”R
The merged value; target is not modified
Call Signature
Section titled “Call Signature”merge<
T,U,R>(target,source,options):R
Defined in: packages/core/src/object/merge.ts:58
Merge two values into a new one.
Shallow by default: a key present in both takes the source’s value whole.
With recursive, two mergeable values are merged instead — see
[“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
source
Section titled “source”U
Value to merge from
options
Section titled “options”MergeOptions & object
Merge options
Returns
Section titled “Returns”R
The merged value; target is not modified