Skip to content

Instantly share code, notes, and snippets.

@kepta

kepta/block1.js Secret

Last active February 21, 2018 14:46
Show Gist options
  • Save kepta/73c44265056e2bdbfc541db798c7f5b1 to your computer and use it in GitHub Desktop.
Save kepta/73c44265056e2bdbfc541db798c7f5b1 to your computer and use it in GitHub Desktop.
.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