Function checkValidJuz

  • Type guard that checks if a value is a valid Juz number. Throws TypeError if value is not an integer. Throws RangeError if value is outside valid Juz range.

    Parameters

    • x: unknown

      Value to check

    Returns asserts x is Juz

    If value is not an integer

    If value is not between 1 and the total number of Juz