mergeObjects

Function

Apply a specified set properties from a source object to a target object

  • mergeObjects(source: any, target: any, allowList: string[]) : any

Parameters

Parameter Type Default Notes
source Required any

The source object

target Required any

The target object

allowList Optional string[]

Array of property paths (if not provided, source returned)

Returns

any

Function defined in common/src/objects/merge-objects.ts:11