UNPKG

date-fns

Version:

Modern JavaScript date utility library

7 lines (5 loc) 215 B
import { normalizeDates } from "./normalizeDates.js"; export function normalizeInterval(context, interval) { const [start, end] = normalizeDates(context, interval.start, interval.end); return { start, end }; }