Skip to main content

CommonIsFinite

Callable

  • CommonIsFinite(value: unknown, min?: number, max?: number): value is number

  • Type guard which checks that a value is a finite number that, optionally, falls within the specified range


    Parameters

    • value: unknown

      The value to test

    • min: number = -Infinity

      The minimum allowed value

    • max: number = Infinity

      The maximum allowed value

    Returns value is number