Polyfill of Promise.all()

Promise.all([Promise1, Promise2, Promise3])
.then(result) => {
console.log(result)
})
.catch(error => console.log(`Error in promises ${error}`))

Suppose Promise.all not available so lets create our Promise.all() function . we will use async and await to achieve this.

Promise.all Polyfill

--

--

--

Full Stack Engineer (Web/App) working on different JS Technologies & frameworks— Angular, Node, Typescript, Ionic, Firebase, AWS, ElK...Love to write cool stuff

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Simple Chrome extension for Gmail notifications

Declaração try…catch no JavaScript

How to make a React component and publish it to NPM

Animation in React CSS Modules

Improving an Existing React Codebase with Better Redux State Management — Part 1

3 Essential Visual Studio Code Extensions

Intro To Framer Motion For React

Get Hands Dirty — Comet

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Shivam Gupta

Shivam Gupta

Full Stack Engineer (Web/App) working on different JS Technologies & frameworks— Angular, Node, Typescript, Ionic, Firebase, AWS, ElK...Love to write cool stuff

More from Medium

How to Change State Variables in Child Components in React.

Es6 Interview for Beginner

JavaScript forEach or map — what’s the difference?

Javascript | Few magical tricks worth knowing