Skip to content

Instantly share code, notes, and snippets.

@maecapozzi
Last active November 24, 2017 18:56
Show Gist options
  • Save maecapozzi/ebf24d24c493093c62c5b8fb089d40ca to your computer and use it in GitHub Desktop.
Save maecapozzi/ebf24d24c493093c62c5b8fb089d40ca to your computer and use it in GitHub Desktop.
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