Skip to main content

isInt

Callable

  • isInt<T>(min: number, max: number, defaultValue: T): (arg: T) => T

  • Private helper to quickly check numbers


    Type parameters

    • T: number

    Parameters

    • min: number
    • max: number
    • defaultValue: T

    Returns (arg: T) => T

      • (arg: T): T
      • Parameters

        • arg: T

        Returns T