Skip to content

Instantly share code, notes, and snippets.

@tzechienchu
Last active June 15, 2016 10:26
Show Gist options
  • Save tzechienchu/29c0403e4da1fd051e4e63133909c21b to your computer and use it in GitHub Desktop.
Save tzechienchu/29c0403e4da1fd051e4e63133909c21b to your computer and use it in GitHub Desktop.
var getCountryCode = promisify(myGoogleMapAPI.getGeoCodeByAddress);
var result = yield (allCountry.map(function(country,index){
var result = getCountryCode(country);
return {country:country,result:result}
}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment