Function: addToRange()
addToRange(
date
,initialRange
,min
,max
,required
):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
Parameter | Type | Default value | Description |
---|---|---|---|
date | Date | undefined | The date to add to the range. |
initialRange | undefined | DateRange | undefined | The range where to add date . |
min | number | 0 | - |
max | number | 0 | - |
required | boolean | false | - |
Returns
DateRange
| undefined