Nezir Zahirovic
Nezir Zahirovic

ES2020 - Promise.any

The result here is equal with 33 since this is the result of the very first Promise that manages to get resolved.The key difference with Promise.race is that Promise.race returns the value of the very first resolved or rejected Promise while Promise.any cares only about the very first resolved (successful) one.When all given Promise objects get rejected, then Promise.any rejects and returns the errors. These might be in one of the following format:.


ES2020 - Promise.any #javascriptba #javascript #nodejs #reactjs #angularjs #vuejs #meteorjs #typescript #jquery #emberjs #denojs #bosnia