ng-swagger-gen.js
function tagName(tag, options) {
  if (tag == null || tag === '') {
    tag = options.defaultTag || 'Api';
  }
  tag = toIdentifier(tag);
  return tag.charAt(0).toUpperCase() + (tag.length == 1 ? '' : tag.substr(1));
}
function tagName(tag, options) {
  if (tag == null || tag === '') {
    tag = options.defaultTag || 'Api';
  }
  tag = toIdentifier(tag);
  return tag.charAt(0).toUpperCase() + (tag.length == 1 ? '' : tag.substr(1));
}
function tagName ( tag , options ) { if ( tag == null || tag === '' ) { tag = options . defaultTag || 'Api' ; } tag = toIdentifier ( tag ) ; return tag . charAt ( 0 ) . toUpperCase ( ) + ( tag . length == 1 ? '' : tag . substr ( 1 ) ) ; }
Normalizes the tag name. Actually, capitalizes the given name.
If the given tag is null, returns the default from options
Normalizes the tag name . Actually capitalizes the given name . If the given tag is null returns the default from options