quran-meta
Version:
Library with meta data and functionality related to Holy Quran
19 lines (17 loc) • 785 B
JavaScript
const require_validation = require('./validation.cjs');
const require_findRubAlHizbByAyahId = require('./findRubAlHizbByAyahId.cjs');
const require_getRubAlHizbMeta = require('./getRubAlHizbMeta.cjs');
//#region src/getRubAlHizbMetaByAyahId.ts
/**
* Finds the Juz, Hizb, and Rub-el-Hizb id for the given Ayah ID.
*
* @param ayahId - The Ayah ID to find the Juz, Hizb, and Hizb ID for.
* @returns An object containing the Juz, Hizb, and Hizb ID for the given Ayah ID.
*/
function getRubAlHizbMetaByAyahId(ayahId) {
require_validation.checkValidAyahId(ayahId);
const quarterIndex = require_findRubAlHizbByAyahId.findRubAlHizbByAyahId(ayahId);
return require_getRubAlHizbMeta.getRubAlHizbMeta(quarterIndex);
}
//#endregion
exports.getRubAlHizbMetaByAyahId = getRubAlHizbMetaByAyahId;