Created
October 2, 2020 12:43
-
-
Save nsacerdote/5047ec0e65da0134db79e55b1160994f 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
function doSomething(input) { | |
return new Promise((resolve, reject) => { | |
if (!input) { | |
reject('missing input'); | |
} else { | |
resolve(input + ' done'); | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment