-
Notifications
You must be signed in to change notification settings - Fork 1
global.API
-
Combines second object with first object adhering th the flagged rules:
Flags: allowNew (true|false) - with: any property from the second object will be merged into the first object. without: only properties that already exist on the first object will be updated to contain the values of the same properties on the second object.
allowReferences (true|false) - with: any property from the second object that is an object will be referenced on the first object. without: any property from the second object that is an object will be a new unique object on the first object.
Name Type Argument Description first
object The first and mutable object to be combined
second
object The second object to be combined
allowNew
boolean <optional>
Are new properties allowed to be created on first
allowReferences
boolean <optional>
Are the properties combined onto first references or clones of the second properties
- Source:
- Type
- object