Created
July 5, 2024 17:58
-
-
Save toky-nomena/2180727fb8150eb70d75a2716b0f5f31 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function isLeapYear(year: number): boolean { | |
return (year % 400 === 0) || (year % 100 !== 0 && year % 4 === 0); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment