function getDecade(date) {
    let firstYear = Math.floor(date.getFullYear() / 10) * 10;
    return [firstYear, firstYear + 9];
}
Calculates current decade
@param {Date} date
@return {number[]} - array of two years, decade start - decade end