quran-meta
Version:
Library with meta data and functionality related to Holy Quran
19 lines (17 loc) • 879 B
JavaScript
const require_validation = require('./validation.cjs');
const require_findThumunAlHizbByAyahId = require('./findThumunAlHizbByAyahId.cjs');
const require_getThumunAlHizb = require('./getThumunAlHizb.cjs');
//#region src/getThumunAlHizbByAyahId.ts
/**
* Finds the Juz, Hizb, Rub-el-Hizb id and thuumun-el-Hizb id for the given Ayah ID.
*
* @param ayahId - The Ayah ID to find the Juz, Hizb, and Hizb ID for.
* @param data - The riwaya. Defaults to "Qalun" if not provided.
* @returns An object containing the Juz, Hizb, Hizb ID and thuumun-el-Hizb id for the given Ayah ID.
*/
function getThumunAlHizbByAyahId(ayahId, data) {
require_validation.checkValidAyahId(ayahId, data.meta);
return require_getThumunAlHizb.getThumunAlHizb(require_findThumunAlHizbByAyahId.findThumunAlHizbByAyahId(ayahId, data));
}
//#endregion
exports.getThumunAlHizbByAyahId = getThumunAlHizbByAyahId;