You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Parameters:
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