Skip to content

Instantly share code, notes, and snippets.

@s-taylor
Last active September 27, 2017 22:25
Show Gist options
  • Save s-taylor/aa450a0a7792c5f37b83ed0e3fd69bd7 to your computer and use it in GitHub Desktop.
Save s-taylor/aa450a0a7792c5f37b83ed0e3fd69bd7 to your computer and use it in GitHub Desktop.
Understanding async await - part 6
function () {
// someAsyncThing being a function that returns a promise
 return someAsyncThing()
 .then(result => result.value);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment