Methods
(inner) getDiffs(o1, o2) → {Object}
Iterates over an object and check for diffing properties /!\ Only diffing fields from o2 will be in return
- Source:
Parameters:
Name | Type | Description |
---|---|---|
o1 |
Object
|
object to compare |
o2 |
Object
|
object to compare |
Returns:
- Type:
-
Object
contains differences between the two entries
(inner) hasProperties(obj, propArray) → {Boolean}
Tell whatever a list of property are set on an object
- Source:
Parameters:
Name | Type | Description |
---|---|---|
obj |
Object
|
|
propArray |
Array
|
list of props to check |
Returns:
- Type:
-
Boolean
true if all props listed in propArray are set on the object
(inner) mergeDeep(target, source) → {Object}
Merges two objects recursively. Fields present on both target and source will be merge or overwritten for scalar fields
- Source:
Parameters:
Name | Type | Description |
---|---|---|
target |
Object
|
|
source |
Object
|
Returns:
- Type:
-
Object
object with deeply merged properties