Created
February 18, 2018 21:10
-
-
Save arekgotfryd/555a26ae25631e93093ca1846df7c5ac 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
async function getFirstUser() { | |
//getUsers() returns Promise | |
let users = await getUsers(); | |
return users[0].name; | |
} | |
let user = await getFirstUser(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment