AbdulElahGwaith's picture
Upload folder using huggingface_hub
cf86710 verified

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

Parameter Type
day Date
range? DateRange

Returns

DateRange | undefined

Source

src/contexts/SelectRange/utils/addToRange.ts:11