Methods
(static) concatArrays(objValue, srcValue)
Change the behavior of lodash array concatenation for deep merge.
By default the lodash merge function follows the behavior of jQuery's deep extend.
With this method, arrays are concatenated.
Parameters:
Name | Type | Description |
---|---|---|
objValue |
* | First argument of lodash mergeWith function. |
srcValue |
* | Second argument of lodash mergeWith function. |
- Source:
Returns:
Concatenated Array.
(static) overwriteValues(objValue, srcValue, key, patternDictopt)
Modifies lodash merge algorithm for values.
If a regex expression matches for a specific key (defined in the patternDict) during the merge process, instead of replacing the srcValue by the objValue, the srcValue is kept.
Consequently, for the predefined keys in patternDict, if objValue matches the pattern in patternDict, srcValue is returned. Else, objValue.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
objValue |
* | First argument of lodash mergeWith function. | ||
srcValue |
* | Second argument of lodash mergeWith function. | ||
key |
String | Third argument of lodash mergeWith function. | ||
patternDict |
Object |
<optional> |
{} | Contain the assignment of key names and regex patterns: { objValue1: pattern1, objValue2: pattern1, ...}, i.e., { mimeType: "^$", photoWidth: "^0$", ...}. |
- Source:
Returns:
Derived value.