Type guard function that checks if a tuple of two numbers represents a valid Surah and Ayah combination.
A tuple containing [surahNumber, ayahNumber]
True if the tuple represents a valid Surah-Ayah combination, false otherwise
isValidSurahAyah([1, 7], HafsLists) // true - Al-Fatiha has 7 ayahsisValidSurahAyah([1, 8], HafsLists) // false - Al-Fatiha only has 7 ayahsisValidSurahAyah([115, 1], HafsLists) // false - there are only 114 surahs Copy
isValidSurahAyah([1, 7], HafsLists) // true - Al-Fatiha has 7 ayahsisValidSurahAyah([1, 8], HafsLists) // false - Al-Fatiha only has 7 ayahsisValidSurahAyah([115, 1], HafsLists) // false - there are only 114 surahs
Type guard function that checks if a tuple of two numbers represents a valid Surah and Ayah combination.