docs: function getBorders(ranges) {
      var borders = [];
  
      ranges.forEach(function(range) {
          var leftBorder = { value: range.from, type: 'from' };
          var rightBorder = { value: range.to, type: 'to' };
  
          borders.push(leftBorder, rightBorder);
      });
  
      return borders;
  }