Skip to content

Instantly share code, notes, and snippets.

@nmoliveira
Last active December 20, 2015 06:39
Show Gist options
  • Save nmoliveira/6087857 to your computer and use it in GitHub Desktop.
Save nmoliveira/6087857 to your computer and use it in GitHub Desktop.
Javascript - check if is a leap year
var isLeap = new Date(year, 1, 29).getMonth() == 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment