Function isValidPage

  • Type guard to check if a number is a valid Quran page number

    Parameters

    • x: unknown

      The number to check

    Returns x is Juz

    True if the number is an integer between 1 and the total number of pages (inclusive)