Function findPagebyAyahId

  • Returns the page number for a given ayah ID in the Quran.

    Parameters

    • ayahId: number

      A numeric identifier representing a verse (ayah) in the Quran

    Returns Page

    The page number where the specified ayah can be found

    Will throw an error if the ayahId is invalid

    const page = findPagebyAyahId(142); // Returns the page number containing ayah 142