4 lines
101 B
JavaScript
4 lines
101 B
JavaScript
exports.isLeap = function(year) {
|
|
return (year % 4 == 0 && (year % 400 == 0 || year % 100 != 0))
|
|
}
|