Last active
November 24, 2017 18:56
-
-
Save maecapozzi/ebf24d24c493093c62c5b8fb089d40ca 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
function *getUser(username) { | |
const uri = 'https://api.github.com/users/' + username | |
const response = yield fetch(uri) | |
const parsedResponse = yield response.json() | |
console.log(parsedResponse) | |
} | |
getUser('maecapozzi') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment