function buildDayNames(firstDayOfweek = 1, t) {
	const pickerLocale = getPickerLocale(t);
	return new Array(7)
		.fill(0)
		.map((_, i) => (i + firstDayOfweek) % 7)
		.map(dayOfWeek => setDay(new Date(0), dayOfWeek))
		.map(headerDate => ({
			abbr: format(headerDate, 'd', pickerLocale),
			full: format(headerDate, 'dddd', pickerLocale),
		}));
}
/**
 * Generate days of week, starting from the provided index
 */
Generate days of week, starting from the provided index
Generate days of week starting from the provided index
function buildDayNames(firstDayOfweek = 1, t) {
	const pickerLocale = getPickerLocale(t);
	return new Array(7)
		.fill(0)
		.map((_, i) => (i + firstDayOfweek) % 7)
		.map(dayOfWeek => setDay(new Date(0), dayOfWeek))
		.map(headerDate => ({
			abbr: format(headerDate, 'd', pickerLocale),
			full: format(headerDate, 'dddd', pickerLocale),
		}));
}
function buildDayNames ( firstDayOfweek = 1 , t ) { const pickerLocale = getPickerLocale ( t ) ; return new Array ( 7 ) . fill ( 0 ) . map ( ( _ , i ) => ( i + firstDayOfweek ) % 7 ) . map ( dayOfWeek => setDay ( new Date ( 0 ) , dayOfWeek ) ) . map ( headerDate => ( { abbr : format ( headerDate , 'd' , pickerLocale ) , full : format ( headerDate , 'dddd' , pickerLocale ) , } ) ) ; }
Generate days of week, starting from the provided index
Generate days of week starting from the provided index