Function findRubAlHizb

  • Finds the Juz (part) and Rub-ul-Hizb/Maqra (quarter section) 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 JuzHizb

    An object containing the Juz (part) number, Hizb (section) number, and the index of the Hizb that the given Ayah belongs to.