Function requireRange

  • Creates input validator that applies requirements to numeric value range.

    Ignores NaN input. Reports too small values with invalid and tooSmall message codes. Reports too large values with invalid and tooLarge message codes.

    Parameters

    • min: undefined | number

      Minimum allowed value, inclusive. Not checked if omitted.

    • Optional max: number

      Maximum allowed value, inclusive. Not checked if omitted.

    Returns InValidator<number>

    Element validator applicable to numeric input control.

Generated using TypeDoc