ng-swagger-gen.js
function mergeTypes(...types) {
  let allTypes = [];
  types.forEach(type => {
    (type.allTypes || [type]).forEach(type => {
      if (allTypes.indexOf(type) < 0) allTypes.push(type);
    });
  });
  return allTypes;
}
function mergeTypes(...types) {
  let allTypes = [];
  types.forEach(type => {
    (type.allTypes || [type]).forEach(type => {
      if (allTypes.indexOf(type) < 0) allTypes.push(type);
    });
  });
  return allTypes;
}
function mergeTypes ( ... types ) { let allTypes = [ ] ; types . forEach ( type => { ( type . allTypes || [ type ] ) . forEach ( type => { if ( allTypes . indexOf ( type ) < 0 ) allTypes . push ( type ) ; } ) ; } ) ; return allTypes ; }
Combine dependencies of multiple types.
@param types
@return {Array}
Combine dependencies of multiple types .