promise race polyfill

Solutions on MaxInterview for promise race polyfill by the best coders in the world

showing results for - "promise race polyfill"
Élisabeth
27 Oct 2019
1Promise.myRace = function (promises) {
2	return new Promise((resolve, reject) => {
3  	promises.forEach((promise) => {
4    	promise.then(resolve, reject)
5    })
6  })
7}
queries leading to this page
promise race polyfillpromise race polyfill