Skip to content

Instantly share code, notes, and snippets.

@Gaafar
Created March 16, 2017 19:01
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 Gaafar/25665bc0aa50118a315fddae935cda25 to your computer and use it in GitHub Desktop.
Save Gaafar/25665bc0aa50118a315fddae935cda25 to your computer and use it in GitHub Desktop.
const makeRequest = () => {
return promise1()
.then(value1 => {
// do something
return Promise.all([value1, promise2(value1)])
})
.then(([value1, value2]) => {
// do something
return promise3(value1, value2)
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment