Too Long; Didn’t Read
Promise.all() is a function that accepts many promises and then does something only after they have all been settled. It is particularly useful for [UI] development – for example, if you want a loading symbol to show on the screen until multiple promises conclude. The data returned is an array of the result from each promise.
L O A D I N G
. . . comments & more!
Everything You Need to Know About Promise.all() in JavaScript
Source: Trends Pinoy
0 Comments