Skip to content

Instantly share code, notes, and snippets.

@ktilcu
Forked from Gaafar/catch-promise.js
Last active October 18, 2017 15:38
Show Gist options
  • Save ktilcu/2ba8dac1ab0cc4d5a6774ce629dab6cb to your computer and use it in GitHub Desktop.
Save ktilcu/2ba8dac1ab0cc4d5a6774ce629dab6cb to your computer and use it in GitHub Desktop.
const makeRequest = () => {
getJSON()
.then(JSON.parse)
.catch(console.log)
.then(console.log)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment