quran-meta
Version:
Library with meta data and functionality related to Holy Quran
12 lines (10 loc) • 333 B
text/typescript
import { getSurahMeta } from "./getSurahMeta"
import { Surah } from "./types"
/**
* Get the number of ayahs (verses) in the specified surah.
* @param surah - The surah number.
* @returns The number of ayahs in the specified surah.
*/
export function getAyahCountInSurah(surah: Surah): number {
return getSurahMeta(surah)[1]
}