Function findJuz

  • Finds the Juz (part) of the Quran that the given Ayah (verse) belongs to.

    Parameters

    • surah: number

      The Surah (chapter) number.

    • ayah: number = 1

      The Ayah (verse) number. Defaults to 1 if not provided.

    • ayahMode: boolean = false

      If true, the ayah parameter is treated as an Ayah ID instead of a Surah and Ayah number.

    Returns Juz

    The Juz (part) number that the given Ayah belongs to.