gpbl / react-day-picker

DayPicker is a customizable date picker component for React. Add date pickers, calendars, and date inputs to your web applications.
https://daypicker.dev
MIT License
6.09k stars 732 forks source link

chore: refactor and improve docs for range utilities #2570

Closed gpbl closed 2 weeks ago

gpbl commented 2 weeks ago

Some small updates after #2537

cc @rodgobbi

rodgobbi commented 2 weeks ago

@gpbl FYI, for the areRangesOverlapping function name I followed the pattern from areIntervalsOverlapping from date-fns, as it's the same logic and I tried to reuse an established pattern.

Thanks for the clean-up đź‘Ť

gpbl commented 2 weeks ago

FYI, for the areRangesOverlapping function name I followed the pattern from areIntervalsOverlapping from date-fns, as it's the same logic and I tried to reuse an established pattern.

That’s interesting! Thanks for the heads up. I’ll note this. In a future version, we might consider using the same terminology as date-fns.