resolving <code>nextPromise</code>. If the returned value is a Promise, the value of <code>nextPromise</code> depends on the inner Promise&#39;s status. If this function throws, <code>nextPromise</code> is rejected with the error as its reason. If <code>onFulfilled</code> is <code>null</code>, it&#39;s ignored</td>
</tr>
<tr>
<td><code>onRejected</code></td>
<td><code>any -&gt; (any&#124;Promise)</code></td>
<td>No</td>
<td>A function that is called when the promise is rejected. The first parameter of this 