OpenTV Player Web HTML5

Module: merge-options

merge-options

merge-options.js

Methods

staticmodule:merge-options.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.

Name Type Description
sources Array.<Object> repeatable

One or more objects to merge into a new object.

Returns:
Type Description
Object A new object that is the merged result of all sources.