Module: merge-options

merge-options.js

Methods


<static> mergeOptions(sources)

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 Argument Description
sources Array.<Object> <repeatable>

One or more objects to merge into a new object.

Returns:

A new object that is the merged result of all sources.

Type
Object