MCPcopy
hub / github.com/flatpickr/flatpickr / isDateInRange

Function isDateInRange

src/index.ts:2767–2774  ·  view source on GitHub ↗
(date: Date)

Source from the content-addressed store, hash-verified

2765 }
2766
2767 function isDateInRange(date: Date) {
2768 if (self.config.mode !== "range" || self.selectedDates.length < 2)
2769 return false;
2770 return (
2771 compareDates(date, self.selectedDates[0]) >= 0 &&
2772 compareDates(date, self.selectedDates[1]) <= 0
2773 );
2774 }
2775
2776 function updateNavigationCurrentMonth() {
2777 if (self.config.noCalendar || self.isMobile || !self.monthNav) return;

Callers 1

createDayFunction · 0.85

Calls 1

compareDatesFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…