Function isAyahPageFirst

  • Determines if the given ayah is the first ayah of a juz.

    Parameters

    • surah: number

      The surah number.

    • ayah: number

      The ayah number.

    • ayahMode: boolean = false

      Optional flag to indicate if the ayah number is already a valid ayah ID.

    Returns Page

    The page number if the ayah is the first ayah of the page, otherwise -1.