Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.5.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