function generateArrayOfYears(year) {
var max = new Date().getFullYear()
var years = []
for (var i = year; i <= max; i++) {
years.push(i)
}
return years
}
console.log(generateArrayOfYears(2015)) // -> [2015, 2016, 2017, 2018, 2019, 2020, 2021]