I am trying to figure out the number of ISO weeks in a year.
This is what I have attempted so far:
moment.tz(2019, "YYYY", "UTC").endOf("year").isoWeek()
However, this method did not give me the correct answer because sometimes the 31st of December is considered ISO week 1.
I know there are possibly some less-than-ideal ways to solve this problem, but I am looking for a cleaner solution in my code.