Repository
Current version released
3 years ago
Versions
leap-year
Check if a year is a leap year.
Usage
Deno π
import { isLeapYear } from "https://deno.land/x/leap_year/mod.ts";
isLeapYear(2014); //=> false
isLeapYear(2016); //=> true
isLeapYear("6 October 2006 00:07:00 GMT"); //=> false
isLeapYear("2000"); //=> false
isLeapYear(new Date(2016, 1, 1)); //=> true
Node.js π’
import { isLeapYear } from "@ultirequiem/leap-year";
Browser πΈ
You can use any CDN that you like.
As an example, for type module π
Or for a plain script tag π¦
The API is the same on all this platforms.
API
Autogenerated Documentation π
Support
Open an Issue, I will check it a soon as possible π
If you want to hurry me up a bit send me a tweet π
Consider supporting me on Patreon if you like my work π
Donβt forget to start the repo β
Licence
Licensed under the MIT License.