Deeply merge two JSON objects' common properties together.
This copies all values from source that match properties inside dest,
checking recursively for non-null nested objects.
If a property in source does not exist in dest or its typeof evaluates differently, it is skipped.
If it is a non-array object, its properties are recursed into and checked in turn.
All other values are copied verbatim.
Parameters
dest: object
The object to merge values into
source: object
The object to source merged values from
Returns void
Remarks
Do not use for regular objects; this is specifically made for JSON copying.
Deeply merge two JSON objects' common properties together. This copies all values from
source
that match properties insidedest
, checking recursively for non-null nested objects.If a property in
source
does not exist indest
or itstypeof
evaluates differently, it is skipped. If it is a non-array object, its properties are recursed into and checked in turn. All other values are copied verbatim.