UNPKG

laif-ds

Version:

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

14 lines (13 loc) 384 B
"use client"; import { millisecondsInWeek as f } from "./constants.js"; import { startOfISOWeek as i } from "./startOfISOWeek.js"; import { startOfISOWeekYear as n } from "./startOfISOWeekYear.js"; import { toDate as m } from "./toDate.js"; function p(e, o) { const t = m(e, o?.in), r = +i(t) - +n(t); return Math.round(r / f) + 1; } export { p as default, p as getISOWeek };