Helpful
    Preparing search index...

    Represents a constraint that forces a property on an object to equal another property on the same object.

    Implements

    • ValidatorConstraintInterface
    Index

    Constructors

    Methods

    Constructors

    Methods

    • Validates that value equals another property defined by args.constraints.

      This validation is case sensitive if the items being checked are strings and is valid to use for password confirmations.

      Parameters

      • value: any

        The value to check.

      • args: ValidationArguments

        The arguments that contains the constraint property name to check against value.

      Returns boolean

      True if value equals args.object[args.constraints]. False otherwise.