mergeObject
Combines 2 objects by coping all properties from object 2 to 1 if the property does not exist yet.
Syntax
mergeObject(object1, object2)
Returns
returns (object) the output will contain the properties if object 2 with object 1 on top
Parameters
- object1 (object)
- is dominant the output will contain all the same properties
- object2 (object)
- the copy source