Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "IsNumberInRange"

Index

Functions

isNumberInRange

  • isNumberInRange(value: any, min: number, max: number): boolean
  • Checks if the argument is in the range of the min max parameters.

    throws

    IsError if min is not a number

    throws

    IsError if max is not a number

    Parameters

    • value: any

      The value being checked.

    • min: number

      The min parameter

    • max: number

      The max parameter

    Returns boolean

    True if the argument is in range.

isNumberInRangeError

  • isNumberInRangeError(value: number, min: number, max: number, field: string, code?: string): void

Generated using TypeDoc