Skip to content

Instantly share code, notes, and snippets.

@jonrandy
Created May 26, 2026 06:12
Show Gist options
  • Select an option

  • Save jonrandy/bc28ece86893a0187793593d9b3b890d to your computer and use it in GitHub Desktop.

Select an option

Save jonrandy/bc28ece86893a0187793593d9b3b890d to your computer and use it in GitHub Desktop.
Promise.all Implementation in JS
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