UNPKG

quran-meta

Version:

Library with meta data and functionality related to Holy Quran

19 lines (17 loc) 571 B
const require_findSurahAyahByAyahId = require('./findSurahAyahByAyahId.cjs'); //#region src/findSurahByAyahId.ts /** * Finds a Surah based on the provided Ayah ID. * * @param ayaId - The unique identifier of the Ayah * @param data - The Lists object containing SurahList. * @returns The Surah that contains the specified Ayah * * @example * const surah = findSurahByAyahId(1234, data); */ function findSurahByAyahId(ayaId, data) { return require_findSurahAyahByAyahId.findSurahAyahByAyahId(ayaId, data)[0]; } //#endregion exports.findSurahByAyahId = findSurahByAyahId;