fix review commets

This commit is contained in:
Ronid1 2024-03-06 09:08:19 -08:00
parent 0981b66a5f
commit b7c889bb70

View File

@ -172,8 +172,8 @@ export const isInvalidDate = function (date, dateFormat, excludes, includes) {
}
if (
excludes.includes('weekends') &&
(date.isoWeekday() == WEEKEND_START_DAY[weekend] ||
date.isoWeekday() == WEEKEND_START_DAY[weekend] + 1)
(date.isoWeekday() === WEEKEND_START_DAY[weekend] ||
date.isoWeekday() === WEEKEND_START_DAY[weekend] + 1)
) {
return true;
}
@ -195,10 +195,6 @@ export const setWeekend = function (startDay) {
weekend = startDay;
};
export const getWeekend = function () {
return weekend;
};
/**
* TODO: fully document what this function does and what types it accepts
*
@ -797,7 +793,6 @@ export default {
setWeekday,
getWeekday,
setWeekend,
getWeekend,
};
/**