Skip to content

Instantly share code, notes, and snippets.

@s-ashwinkumar
Created August 4, 2017 08:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save s-ashwinkumar/fb779fdf1bca095e5cf5078bba9a6e33 to your computer and use it in GitHub Desktop.
Save s-ashwinkumar/fb779fdf1bca095e5cf5078bba9a6e33 to your computer and use it in GitHub Desktop.
Consume the first promise
willAddNewPost
.then(new_post => console.log(new_post))
.catch(error_message => console.log(error_message));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment