Updated Syntax

This commit is contained in:
Rak Laptudirm
2021-01-21 10:27:57 +05:30
committed by GitHub
parent 96ec303875
commit e0d2e5ad6a

View File

@ -21,7 +21,7 @@ const getMonthDays = (monthNumber, year) => {
if (the30DaysMonths.includes(monthNumber)) { return 30 }
// Check for Leap year
if (((year % 400) === 0)||(((year % 100) != 0) && ((year % 4) === 0))) { return 29 }
if (((year % 400) === 0) || (((year % 100) !== 0) && ((year % 4) === 0))) { return 29 }
return 28
}