Last active
July 5, 2018 07:34
-
-
Save kutyel/4b5c89f05adfaed7869ac4b3790e4082 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| fetch('http://example/endpoint') | |
| .then(data => data.json()) // todo bien, todo correcto... | |
| .catch(err => console.error(err)) // oh oh... | |
| .finally(() => console.log('...y yo que me alegro!')) // <-- lo nuevo 😎 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment