UNPKG

@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

14 lines 414 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getYearList = void 0; const getYearList = (minDate, maxYear) => { const max = maxYear.getFullYear(); const min = minDate.getFullYear(); const years = []; for (let i = max; i >= min; i--) { years.push(i); } return years; }; exports.getYearList = getYearList; //# sourceMappingURL=getYearList.js.map