Skip to content

mergeInplace

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.

T

U

R

T

Value to merge into; modified when it is mergeable

U

Value to merge from

MergeOptions & object

Merge options

R

target where it could be merged into, otherwise the source value

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.

T

U

R

T

Value to merge into; modified when it is mergeable

U

Value to merge from

MergeOptions & object

Merge options

R

target where it could be merged into, otherwise the source value