'use strict';

/** Returns an array of calendar weeks from an array of calendar months. */
function getWeeks(months) {
    const initialWeeks = [];
    return months.reduce((weeks, month) => {
        return [...weeks, ...month.weeks];
    }, initialWeeks);
}

exports.getWeeks = getWeeks;
//# sourceMappingURL=getWeeks.cjs.map
