Skip to main content
Deno 2 is finally here 🎉️
Learn more
Go to Latest
function addToRange
import { addToRange } from "https://deno.land/x/netzo@0.3.66/deps/react-day-picker.ts";

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

day: Date
optional
range: DateRange

Returns

DateRange | undefined