2023-06-19 16:19:55 -07:00
|
|
|
const leapYears = function (year) {
|
|
|
|
return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0
|
|
|
|
}
|
2017-08-25 11:47:05 -07:00
|
|
|
|
2021-09-11 15:18:19 -07:00
|
|
|
// Do not edit below this line
|
2023-06-19 16:19:55 -07:00
|
|
|
module.exports = leapYears
|