Files
klz-cables.com/.pnpm-store/v10/files/fb/1fd0cfde45a105007e397c3c21d9ec3f9c3f1de73b717dcc2f6793d621209aee727b9215cc2afe0691373be002da0b5bfd79130741e470ed068b79fdddde97
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

37 lines
830 B
Plaintext

"use strict";
exports.isTomorrow = isTomorrow;
var _index = require("./addDays.cjs");
var _index2 = require("./constructNow.cjs");
var _index3 = require("./isSameDay.cjs");
/**
* The {@link isTomorrow} function options.
*/
/**
* @name isTomorrow
* @category Day Helpers
* @summary Is the given date tomorrow?
* @pure false
*
* @description
* Is the given date tomorrow?
*
* @param date - The date to check
* @param options - An object with options
*
* @returns The date is tomorrow
*
* @example
* // If today is 6 October 2014, is 7 October 14:00:00 tomorrow?
* const result = isTomorrow(new Date(2014, 9, 7, 14, 0))
* //=> true
*/
function isTomorrow(date, options) {
return (0, _index3.isSameDay)(
date,
(0, _index.addDays)((0, _index2.constructNow)(options?.in || date), 1),
options,
);
}