quran-meta
    Preparing search index...

    Function findManzilByAyahId

    • Finds the Manzil number for a given Ayah ID using binary search. A Manzil is one of seven approximately equal divisions of the Quran.

      Parameters

      • ayahId: number

        The ID of the Ayah to find the Manzil for

      • data: RiwayaData

        The Lists object for the riwaya.

      Returns Manzil

      The Manzil number (1-7) containing the specified Ayah

      Error If the provided Ayah ID is invalid

      const manzil = findManzilByAyahId(2345, HafsLists); // Returns the Manzil containing Ayah 2345