Skip to content

Instantly share code, notes, and snippets.

@alex-cory
Created December 4, 2017 03:15
Show Gist options
  • Save alex-cory/f6ed29243df30e3fad2aae18611dec1f to your computer and use it in GitHub Desktop.
Save alex-cory/f6ed29243df30e3fad2aae18611dec1f to your computer and use it in GitHub Desktop.
Tells whether the specified year is a leap year
const isLeapYear = year => new Date(year,1,29).getDate() === 29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment