Finds the Manzil number for a given Ayah ID using binary search. A Manzil is one of seven approximately equal divisions of the Quran.
The ID of the Ayah to find the Manzil for
The Lists object for the riwaya.
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 Copy
const manzil = findManzilByAyahId(2345, HafsLists); // Returns the Manzil containing Ayah 2345
Finds the Manzil number for a given Ayah ID using binary search. A Manzil is one of seven approximately equal divisions of the Quran.