code: function versionToString(version) {
      if (isObject(version)) {
          try {
              return [version.major, version.minor, version.patch].join('.');
          } catch (e) {}
      }
      return version;
  }
docs: Convert a version object to a string.
  
  @param  Mixed version  a version string or object