Monster.Constraints. AbstractOperator

Constraints are used to define conditions that must be met by the value of a variable.

The uniform API of the constraints allows chains to be formed.

Operators allow you to link constraints together. for example, you can check whether a value is an object or an array. each operator has two operands that are linked together.

Constructor

new AbstractOperator(operantA, operantB)

The abstract operator constraint

Parameters:
NameTypeDescription
operantAAbstractConstraint
operantBAbstractConstraint
Since
  • 1.3.0
License
  • AGPLv3
Throws:

"parameters must be from type AbstractConstraint"

Type
TypeError