docs: function formatYear(year) {
      var from, to;
  
      year = year.split('–');
  
      if (year.length === 2) {
          from = +year[0];
  
          if (year[1]) {
              to = +year[1];
          }
  
          return { from: from, to: to };
      }
  
      return +year;
  }