Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Very Popular
Latest
function default
import { default } from "https://deno.land/x/date_fns@v2.22.1/isLeapYear/index.ts";

Examples

// Is 1 September 2012 in the leap year? var result = isLeapYear(new Date(2012, 8, 1)) //=> true

Parameters

dirtyDate: Date | number
  • the date to check

Returns

boolean

the date is in the leap year