Rocky_Mountain_Vending/.pnpm-store/v10/files/c3/fbe01157ca9c252e6f43984a9abcf6868127975c68306e61c608c04b2b7889d85de16ab42fd3b02b6e8a1da69694b114744b8249c91f36ef5852197dc8fa79
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

36 lines
922 B
Text

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