Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netzo/deps/react-day-picker.ts>addToRange

Deno-powered framework for building business web apps
Go to Latest
function addToRange
import { addToRange } from "https://deno.land/x/netzo@0.3.91/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