src/index.js
function to3 (alpha2) {
    if (alpha2 && alpha2.length > 1) state = alpha2
    if (state.length !== 2) return state
    return ISOCodes.filter(function (row) {
      return row.alpha2 === state
    })[0].alpha3
  }
function to3 (alpha2) {
    if (alpha2 && alpha2.length > 1) state = alpha2
    if (state.length !== 2) return state
    return ISOCodes.filter(function (row) {
      return row.alpha2 === state
    })[0].alpha3
  }
function to3 ( alpha2 ) { if ( alpha2 && alpha2 . length > 1 ) state = alpha2 if ( state . length !== 2 ) return state return ISOCodes . filter ( function ( row ) { return row . alpha2 === state } ) [ 0 ] . alpha3 }
Convert an ISO 3166-1 alpha-2 code to alpha-3

@param  {String} alpha2 US
@return {String}
Convert an ISO 3166 - 1 alpha - 2 code to alpha - 3