@techmely/utils
Version:
Collection of helpful JavaScript / TypeScript utils
18 lines (15 loc) • 358 B
JavaScript
/*!
* @techmely/utils
* Copyright(c) 2021-2024 Techmely <techmely.creation@gmail.com>
* MIT Licensed
*/
;
(() => {
// src/isSameMonth.ts
function isSameMonth(date1, date2) {
if (!(date1 && date2)) {
return false;
}
return date1.getFullYear() === date2.getFullYear() && date1.getMonth() === date2.getMonth();
}
})();