ng-swagger-gen.js
function toFileName(typeName) {
  var result = '';
  var wasLower = false;
  for (var i = 0; i < typeName.length; i++) {
    var c = typeName.charAt(i);
    var isLower = /[a-z]/.test(c);
    if (!isLower && wasLower) {
      result += '-';
    }
    result += c.toLowerCase();
    wasLower = isLower;
  }
  return result;
}
function toFileName(typeName) {
  var result = '';
  var wasLower = false;
  for (var i = 0; i < typeName.length; i++) {
    var c = typeName.charAt(i);
    var isLower = /[a-z]/.test(c);
    if (!isLower && wasLower) {
      result += '-';
    }
    result += c.toLowerCase();
    wasLower = isLower;
  }
  return result;
}
function toFileName ( typeName ) { var result = '' ; var wasLower = false ; for ( var i = 0 ; i < typeName . length ; i ++ ) { var c = typeName . charAt ( i ) ; var isLower = / [a-z] / . test ( c ) ; if ( ! isLower && wasLower ) { result += '-' ; } result += c . toLowerCase ( ) ; wasLower = isLower ; } return result ; }
Converts a given type name into a TS file name
Converts a given type name into a TS file name