-
-
Save kepta/832a03ad1bcf07ab55845aa9129e3412 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
.then(val => { | |
if (val != 5) { | |
return Promise.reject('Not Good'); | |
} | |
}) | |
.catch(e => console.log(e)) // Not Good |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment