function isLeapimport { isLeap } from "https://dotland.deno.dev/std@0.181.0/datetime/is_leap.ts"; isLeap(year: Date | number): booleanReturns whether the given date or year (in number) is a leap year or not. based on: https://docs.microsoft.com/en-us/office/troubleshoot/excel/determine-a-leap-year ExamplesExample 1 import { isLeap } from "https://deno.land/std@0.181.0/datetime/is_leap.ts"; isLeap(new Date("1970-01-01")); // => returns false isLeap(new Date("1972-01-01")); // => returns true isLeap(new Date("2000-01-01")); // => returns true isLeap(new Date("2100-01-01")); // => returns false isLeap(1972); // => returns true Parametersyear: Date | numberyear in number or Date format Returnsboolean