UNPKG

quran-meta

Version:

Library with meta data and functionality related to Holy Quran

13 lines (12 loc) 375 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.findJuzByAyahId = findJuzByAyahId; var _juzList = require("./lists/juzList.cjs"); var _validation = require("./validation.cjs"); function findJuzByAyahId(ayahId) { (0, _validation.checkValidAyahId)(ayahId); const juz = _juzList.JuzList.findIndex(x => x > ayahId) - 1; return juz; }