@kubit-ui-web/react-components
Version:
Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience
8 lines • 433 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getAllDaysInMonth = void 0;
const getAllDaysInMonth = (month, year) => Array.from({ length: new Date(year, month, 0).getDate() }, // get next month, zeroth's (previous) day
(_, i) => new Date(year, month - 1, i + 1) // get current month (0 based index)
);
exports.getAllDaysInMonth = getAllDaysInMonth;
//# sourceMappingURL=getAllDaysInMonth.js.map