Created
September 10, 2016 20:33
-
-
Save russiann/9561d6a2f5ab1e3766abf7bb53db06c7 to your computer and use it in GitHub Desktop.
Sequencial Promises
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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