Skip to main content

@novorender/web_app / mergeRecursive

Function: mergeRecursive()

function mergeRecursive(original, changes): any

Utility function for merging the properties of two objects recursively

Parameters

ParameterTypeDescription
originalanyOriginal, baseline object.
changesanyChanges to be applied to baseline object.

Returns

any

A clone of the original with all the changes applied.

Remarks

This function is similar to Object.assign, only recursive.

Defined in

@novorender/core3d/state/modify.ts:35