Last active
July 9, 2020 11:24
-
-
Save lpj145/333adf719c2d4a521b6206f1feb204a7 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
async function getCityByZipCode(zipCode) { | |
if (zipCode instanceof String && zipCode.length === 8) { | |
return {} | |
} | |
try { | |
return await this.$viacep.buscarCep(zipCode) | |
} catch(exception( { | |
console.log(exception) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment