Create a gist now

Instantly share code, notes, and snippets.

@pionize /.js
Created Jul 25, 2017

What would you like to do?
Async/Await
const getUser = async (name) => {
const user = await getUserByName(name);
const account = await getUserAccountById(user.id);
return account;
}
const myUser = getUser('andrew');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment