docs: function versionToInt(version){
      var base = 1000000;
      var part = String(version).split('.');
  
      for (var i = 0, result = 0; i < 4 && i < part.length; i++, base /= 100)
        result += part[i] * base;
  
      return result;
    }