Pirkei Avot being studied on Shabbat between Pesach and Rosh Hashana
"From at least the time of Saadia Gaon (10th century),
it has been customary to study one chapter a week on each Shabbat
between Passover and Shavuot; today, the tractate is generally studied
on each Shabbat of the summer, from Passover to Rosh Hashanah,
the entire cycle repeating a few times with doubling of chapters
at the end if there are not a perfect multiple of six weeks"
https://en.wikipedia.org/wiki/Pirkei_Avot#Study_of_the_work
returns array (since it can return 2 chapters) or undefined if there is no Pirkei Avot on that day
optimized for diaspora and il
feel free to modify whatever you want, i am sure this task can be done in different ways and orders
Pirkei Avot being studied on Shabbat between Pesach and Rosh Hashana
"From at least the time of Saadia Gaon (10th century), it has been customary to study one chapter a week on each Shabbat between Passover and Shavuot; today, the tractate is generally studied on each Shabbat of the summer, from Passover to Rosh Hashanah, the entire cycle repeating a few times with doubling of chapters at the end if there are not a perfect multiple of six weeks" https://en.wikipedia.org/wiki/Pirkei_Avot#Study_of_the_work
returns array (since it can return 2 chapters) or undefined if there is no Pirkei Avot on that day optimized for diaspora and il feel free to modify whatever you want, i am sure this task can be done in different ways and orders