-
-
Save kepta/73c44265056e2bdbfc541db798c7f5b1 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(r => { | |
return serverStatusPromise(r); // this is a promise of { statusCode: 200 } | |
}) | |
.then(resp => { | |
console.log(resp.statusCode); // 200; notice the automatic unwrapping of promise | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment