Files
klz-cables.com/.pnpm-store/v10/files/4e/f14c4101280e2be300e68f2bac8951f5e98ad4d648c3112a7a850f2a919f13eaf2046b2ae05b77a1fa3d93f42e83b71ac60843b70b0712262917b87ce07378
Marc Mintel 5397309103
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
fix(products): fix breadcrumbs and product filtering (backport from main)
2026-02-24 16:04:21 +01:00

28 lines
730 B
Plaintext

import { nextDay } from "./nextDay.mjs";
/**
* @name nextSunday
* @category Weekday Helpers
* @summary When is the next Sunday?
*
* @description
* When is the next Sunday?
*
* @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).
*
* @param date - The date to start counting from
*
* @returns The next Sunday
*
* @example
* // When is the next Sunday after Mar, 22, 2020?
* const result = nextSunday(new Date(2020, 2, 22))
* //=> Sun Mar 29 2020 00:00:00
*/
export function nextSunday(date) {
return nextDay(date, 0);
}
// Fallback for modularized imports:
export default nextSunday;