Skip to content
This repository has been archived by the owner on May 26, 2021. It is now read-only.

global.API

Lee Tagg edited this page Aug 24, 2015 · 1 revision

Global

Methods

<private> combineObjects(first, second, allowNew, allowReferences) → {object}

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

Source:
Returns:
Type
object

Generated with wicked.