(baseParts: DatetimeParts, compareParts: DatetimeParts)
| 6 | * Returns true if the selected day is equal to the reference day |
| 7 | */ |
| 8 | export const isSameDay = (baseParts: DatetimeParts, compareParts: DatetimeParts) => { |
| 9 | return ( |
| 10 | baseParts.month === compareParts.month && baseParts.day === compareParts.day && baseParts.year === compareParts.year |
| 11 | ); |
| 12 | }; |
| 13 | |
| 14 | /** |
| 15 | * Returns true is the selected day is before the reference day. |
no outgoing calls
no test coverage detected