Skip to content

Instantly share code, notes, and snippets.

@kepta

kepta/block18.js Secret

Last active February 21, 2018 15:04
Show Gist options
  • Save kepta/ce14343b3231607c15208ce725d032c1 to your computer and use it in GitHub Desktop.
Save kepta/ce14343b3231607c15208ce725d032c1 to your computer and use it in GitHub Desktop.
.then(() => 5.length) // <-- something wrong happenned here
.catch(e => {
return 5; // <-- making javascript great again
})
.then(r => {
console.log(r); // 5
})
.catch(e => {
console.error(e); // this function will never be called :)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment