Function isLeapYear

  • Determines whether a given Jalali (Persian) year is a leap year.

    In the Jalali calendar, leap years occur in a repeating 33-year cycle. The leap years are those where the year modulo 33 equals one of: [1, 5, 9, 13, 17, 22, 26, 30].

    Parameters

    • year: number

      The Jalali year to check.

    Returns boolean

    true if the year is a leap year, otherwise false.

    isLeapYear(1403); // false
    isLeapYear(1404); // true