Function: addToRange
▸ addToRange(day
, range?
): DateRange
| undefined
Add a day to an existing range.
The returned range takes in account the undefined
values and if the added
day is already present in the range.
Parameters
Name | Type |
---|---|
day | Date |
range? | DateRange |
Returns
DateRange
| undefined
Defined in
packages/react-day-picker/src/contexts/SelectRange/utils/addToRange.ts:11