quran-meta
Version:
Library with meta data and functionality related to Holy Quran
15 lines (13 loc) • 478 B
JavaScript
const require_getSurahInfo = require('./getSurahInfo.cjs');
//#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 require_getSurahInfo.getSurahInfo(surah, data)[1];
}
//#endregion
exports.getAyahCountInSurah = getAyahCountInSurah;