quran-meta
Version:
Library with meta data and functionality related to Holy Quran
21 lines (20 loc) • 801 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getRubAlHizbMeta = getRubAlHizbMeta;
var _findSurahAyahByAyahId = require("./findSurahAyahByAyahId.cjs");
var _getRubAlHizb = require("./getRubAlHizb.cjs");
var _hizbQuarterList = require("./lists/hizbQuarterList.cjs");
function getRubAlHizbMeta(quarterIndex) {
const res = (0, _getRubAlHizb.getRubAlHizb)(quarterIndex);
const [firstAyahId, nextJuzAyahId] = [_hizbQuarterList.HizbQuarterList[quarterIndex], _hizbQuarterList.HizbQuarterList[quarterIndex + 1]];
const lastAyahId = nextJuzAyahId - 1;
return {
firstAyahId,
lastAyahId,
first: (0, _findSurahAyahByAyahId.findSurahAyahByAyahId)(firstAyahId),
last: (0, _findSurahAyahByAyahId.findSurahAyahByAyahId)(lastAyahId),
...res
};
}