jspm_packages/npm/babel-core@5.8.38/lib/types/flow.js
function createUnionTypeAnnotation(types) {
  var flattened = removeTypeDuplicates(types);

  if (flattened.length === 1) {
    return flattened[0];
  } else {
    return t.unionTypeAnnotation(flattened);
  }
}
function createUnionTypeAnnotation(types) {
  var flattened = removeTypeDuplicates(types);

  if (flattened.length === 1) {
    return flattened[0];
  } else {
    return t.unionTypeAnnotation(flattened);
  }
}
function createUnionTypeAnnotation ( types ) { var flattened = removeTypeDuplicates ( types ) ; if ( flattened . length === 1 ) { return flattened [ 0 ] ; } else { return t . unionTypeAnnotation ( flattened ) ; } }
Takes an array of `types` and flattens them, removing duplicates and
returns a `UnionTypeAnnotation` node containg them.
Takes an array of types and flattens them removing duplicates and returns a UnionTypeAnnotation node containg them .