UNPKG

quran-meta

Version:

Library with meta data and functionality related to Holy Quran

15 lines (13 loc) 429 B
import { getSurahInfo } from "./getSurahInfo.mjs"; //#region src/getAyahCountInSurah.ts /** * Get the number of ayahs (verses) in the specified surah. * @param surah - The surah number. * @param data - The Lists object containing SurahList. * @returns The number of ayahs in the specified surah. */ function getAyahCountInSurah(surah, data) { return getSurahInfo(surah, data)[1]; } //#endregion export { getAyahCountInSurah };