merge-options.js
Methods
-
static mergeOptions(…sources) → {Object}
-
Merge two objects recursively.
Performs a deep merge like lodash.merge, but only merges plain objects (not arrays, elements, or anything else).
Non-plain object values will be copied directly from the right-most argument.
Parameters:
Name Type Attributes Description sources
Array.<Object> <repeatable>
One or more objects to merge into a new object.
Returns:
Object -A new object that is the merged result of all sources.