Last active
January 4, 2018 18:44
-
-
Save ktilcu/8467480f217bbe82854e0bd444c8bccd to your computer and use it in GitHub Desktop.
Promise.join - simply
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 join = (fn, ...params) => | |
| Promise | |
| .all(params) | |
| .then(ps => fn.apply(null, ps)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment