Skip to content

Instantly share code, notes, and snippets.

@jervert
Created January 9, 2014 14:03
Show Gist options
  • Save jervert/8334567 to your computer and use it in GitHub Desktop.
Save jervert/8334567 to your computer and use it in GitHub Desktop.
Hypersimple leap year verify for Javascript
function isLeapYear(year) {
return ((year % 4 === 0) && (year % 100 !== 0)) || (year % 400 === 0);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment