UNPKG

laif-ds

Version:

Design System di Laif con componenti React basati su principi di Atomic Design

14 lines (13 loc) 375 B
"use client"; import { millisecondsInWeek as f } from "./constants.js"; import { startOfWeek as m } from "./startOfWeek.js"; import { startOfWeekYear as a } from "./startOfWeekYear.js"; import { toDate as i } from "./toDate.js"; function u(r, e) { const t = i(r, e?.in), o = +m(t, e) - +a(t, e); return Math.round(o / f) + 1; } export { u as default, u as getWeek };