function.mergeRecursive
API > mergeRecursive
Function: mergeRecursive
mergeRecursive(
original
,changes
):any
Utility function for merging the properties of two objects recursively
Parameters
Parameter | Type | Description |
---|---|---|
original | any | Original, baseline object. |
changes | any | Changes to be applied to baseline object. |
Returns
any
A clone of the original with all the changes applied.
Source
@novorender/core3d/state/modify.ts:35
Remarks
This function is similar to Object.assign, only recursive.