quran-meta
Version:
Library with meta data and functionality related to Holy Quran
14 lines (12 loc) • 361 B
JavaScript
import { getSurahInfo } from "./getSurahInfo.js";
//#region src/getAyahCountInSurah.ts
/**
* Get the number of ayahs (verses) in the specified surah.
* @param surah - The surah number.
* @returns The number of ayahs in the specified surah.
*/
function getAyahCountInSurah(surah) {
return getSurahInfo(surah)[1];
}
//#endregion
export { getAyahCountInSurah };