Skip to content

Instantly share code, notes, and snippets.

@kepta

kepta/block9.js Secret

Last active February 21, 2018 14:54
Show Gist options
  • Save kepta/dce345727f75188eb22ef04d161fe0bb to your computer and use it in GitHub Desktop.
Save kepta/dce345727f75188eb22ef04d161fe0bb to your computer and use it in GitHub Desktop.
// converting a sync function to an async function
function foo() {
return Promise.resolve(5);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment