quran-meta
Version:
Library with meta data and functionality related to Holy Quran
12 lines (11 loc) • 385 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.findRubAlHizbByAyahId = findRubAlHizbByAyahId;
var _hizbList = require("./lists/hizbList.cjs");
var _validation = require("./validation.cjs");
function findRubAlHizbByAyahId(ayahId) {
(0, _validation.checkValidAyahId)(ayahId);
return _hizbList.HizbQuarterList.findIndex(x => x > ayahId) - 1;
}