Last active
June 15, 2016 10:26
-
-
Save tzechienchu/29c0403e4da1fd051e4e63133909c21b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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