Files
klz-cables.com/.pnpm-store/v10/files/0f/27e6e093416ad9c9c07441b4a660ad72e6a634b280914a6409c3ed0d32c400f4dfe8b694e4e054d88d43d050aa3a53d235d1828f9d1827ffb86c1d727f9c80
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

29 lines
857 B
Plaintext

"use strict";
exports.isThisYear = isThisYear;
var _index = require("./constructNow.js");
var _index2 = require("./isSameYear.js");
/**
* @name isThisYear
* @category Year Helpers
* @summary Is the given date in the same year as the current date?
* @pure false
*
* @description
* Is the given date in the same year as the current date?
*
* @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 check
*
* @returns The date is in this year
*
* @example
* // If today is 25 September 2014, is 2 July 2014 in this year?
* const result = isThisYear(new Date(2014, 6, 2))
* //=> true
*/
function isThisYear(date) {
return (0, _index2.isSameYear)(date, (0, _index.constructNow)(date));
}