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

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

Full-stack Deno framework for building business web apps like internal tools, dashboards, admin panels and automated workflows.
Go to Latest
function addToRange
import { addToRange } from "https://deno.land/x/netzo@0.4.72/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