Last active
April 3, 2018 09:10
-
-
Save patoi/b30ebe462cd699a345b23aa815c01b5e to your computer and use it in GitHub Desktop.
Testing async/await
This file contains hidden or 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 testFunction (isOK) { | |
if (isOK === true) { | |
return 'OK' | |
} else { | |
throw new Error('not OK') | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment