When to use promise.all()? : <p>This is more of a conceptual question. I understand the Promise design pattern, but couldn't find a reliable source to answer my question about <code>promise.all()</code>:</p>

<h3>What is(are) the correct scenario(s) to use <code>promise.all()</code></h3>

<p>OR</p>

<h3>Are there any best practices to use <code>promise.all()</code>? Should it be ideally used only if all of the promise objects are of the same or similar types?</h3>

<p>The only one I could think of is:</p>

<ul>
<li>Use <code>promise.all()</code> if you want to resolve the promise <strong>only</strong> if <strong>all</strong> of the promise objects resolve and reject if even one rejects.</li>
</ul>
