Library API
    Preparing search index...

    Function isLeapYear

    • Determines whether a given calendar year is a leap year in the Gregorian calendar.

      Parameters

      • year: number

        The full calendar year to test (e.g. 2024)

      Returns boolean

      true if the year is a leap year, otherwise false