Skip to content

Instantly share code, notes, and snippets.

@russiann
Created September 10, 2016 20:33
Show Gist options
  • Save russiann/9561d6a2f5ab1e3766abf7bb53db06c7 to your computer and use it in GitHub Desktop.
Save russiann/9561d6a2f5ab1e3766abf7bb53db06c7 to your computer and use it in GitHub Desktop.
Sequencial Promises
const promises = [promise1, promise2, promise3];
promises.reduce((previousPromise, currentPromise) => {
previousPromise.then(currentPromise)
}, Promise.resolve());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment