From 4cdcff99ca335914bc7899010ff99715b9f0f797 Mon Sep 17 00:00:00 2001 From: "exercism-solutions-syncer[bot]" <211797793+exercism-solutions-syncer[bot]@users.noreply.github.com> Date: Tue, 7 Jul 2026 17:13:41 +0000 Subject: [PATCH] [Sync Iteration] typescript/leap/1 --- solutions/typescript/leap/1/leap.ts | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 solutions/typescript/leap/1/leap.ts diff --git a/solutions/typescript/leap/1/leap.ts b/solutions/typescript/leap/1/leap.ts new file mode 100644 index 0000000..c08cc84 --- /dev/null +++ b/solutions/typescript/leap/1/leap.ts @@ -0,0 +1,3 @@ +export function isLeap(year:number):boolean { + return (year%400 === 0) || (year%100 != 0 && year%4 === 0); +}