function buildYears(middle, window = 3) {
	const middleYear = middle === undefined ? getYear(new Date()) : middle;
	const start = middleYear - window;
	const end = middleYear + window;
	const years = [];
	for (let i = start; i <= end; i += 1) {
		years.push(i);
	}
	return years;
}
/**
 * Generate a years window, centered on the current year by default, or the provided one
 */
Generate a years window, centered on the current year by default, or the provided one
Generate a years window centered on the current year by default or the provided one
function buildYears(middle, window = 3) {
	const middleYear = middle === undefined ? getYear(new Date()) : middle;
	const start = middleYear - window;
	const end = middleYear + window;
	const years = [];
	for (let i = start; i <= end; i += 1) {
		years.push(i);
	}
	return years;
}
function buildYears ( middle , window = 3 ) { const middleYear = middle === undefined ? getYear ( new Date ( ) ) : middle ; const start = middleYear - window ; const end = middleYear + window ; const years = [ ] ; for ( let i = start ; i <= end ; i += 1 ) { years . push ( i ) ; } return years ; }
Generate a years window, centered on the current year by default, or the provided one
Generate a years window centered on the current year by default or the provided one