Created
May 26, 2026 06:12
-
-
Save jonrandy/bc28ece86893a0187793593d9b3b890d to your computer and use it in GitHub Desktop.
Promise.all Implementation in JS
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 all = async arr => { | |
| const results = [] | |
| for (p of arr) results.push(await p) | |
| return results | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment