Last active
December 21, 2020 09:28
-
-
Save benjamin658/55ea3c9f907d9e2dc6647a5ef67eff08 to your computer and use it in GitHub Desktop.
Promise in sequence
This file contains 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 = []; // an array of promises. | |
promises.reduce((prev, next) => prev.then(next), Promise.resolve()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment