SyntaxFix
Write A Post
Hire A Developer
Questions
A faster solution is provided by Kevin P. Rice here:https://stackoverflow.com/a/11595914/5535820 So here's the code:
function leapYear(year) { return (year & 3) == 0 && ((year % 25) != 0 || (year & 15) == 0); }