This commit is contained in:
2022-11-02 07:43:39 +01:00
parent 8f63550167
commit ccf89d8607
13 changed files with 16276 additions and 0 deletions

6
typescript/leap/leap.ts Normal file
View File

@@ -0,0 +1,6 @@
export function isLeap(year: number): boolean {
if (year % 400 === 0) return true;
if (year % 100 === 0) return false;
if (year % 4 === 0) return true;
return false;
}