Class: LodashCustomizer

vef.plot.LodashCustomizer()

Implementation of lodash mergeWith customizer functions. Usage: https://lodash.com/docs/4.17.15#mergeWith.

Constructor

new LodashCustomizer()

Source:

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.