merge-options.js

Methods

static mergeOptions(…sources) → {Object}

[utils/merge-options.js](https://docs.videojs.com/utils_merge-options.js.html), [line 24](https://docs.videojs.com/utils_merge-options.js.html#line24)

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:
NameTypeAttributesDescription
sourcesArray.<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.