Skip to content

Instantly share code, notes, and snippets.

@kasperpeulen
Last active November 19, 2020 10:33
Show Gist options
  • Save kasperpeulen/2dd2521922f3c32a9ab50d782ad61c2f to your computer and use it in GitHub Desktop.
Save kasperpeulen/2dd2521922f3c32a9ab50d782ad61c2f to your computer and use it in GitHub Desktop.
fetchA()
.then((a) => fetchB(a)
.then((b) => fetchC(b)
.then((c) => fetchD(c))))
// this can be safely refacoted as
fetchA().then(fetchB).then(fetchC).then(fetchD)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment