quran-meta
    Preparing search index...

    Function ayahsInPart

    • Iterates over every ayah in a part of the Quran, in order.

      Parameters

      • type: "juz" | "surah" | "page" | "ruku" | "rubAlHizb" | "thumunAlHizb" | "manzil"

        The kind of part

      • num: number

        The part number, starting at 1

      • data: RiwayaData

        The Lists object for the riwaya

      Returns Generator<SurahAyah, void, undefined>

      [surah, ayah] for every ayah of the part

      RangeError If num is outside the parts of that kind

      for (const [surah, ayah] of ayahsInPart("page", 604, HafsLists)) {
      console.log(`${surah}:${ayah}`) // 112:1 ... 114:6
      }
      const ayahs = [...ayahsInPart("ruku", 1, HafsLists)]