Skip to main content

mergeConstraints

function mergeConstraints(baseConstraints): (constraints) => 
| undefined
| boolean
| InputConstraintSet;

Merge base constraints with provided base constraints and another constraints

Parameters

ParameterType
baseConstraints| undefined | boolean | InputConstraintSet

Returns

(constraints): 
| undefined
| boolean
| InputConstraintSet;

Parameters

ParameterType
constraints| undefined | InputDeviceConstraint

Returns

| undefined | boolean | InputConstraintSet