Last active
July 20, 2016 09:31
-
-
Save MD4/1208d8b53d44b564e6d93149939bb1ea to your computer and use it in GitHub Desktop.
🐒 Promise.series simple implementation !
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
Promise.series = promises => promises | |
.reduce( | |
(promise, current) => promise.then(current), | |
Promise.resolve() | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment