* Return a promise that will fulfill once all input promises have * fulfilled, or reject when any one input promise rejects. * @param {array|Promise} promises array (or promise for an array) of promises * @returns {Promise}
(promises)
| 179 | * @returns {Promise} |
| 180 | */ |
| 181 | function all(promises) { |
| 182 | return when(promises, Promise.all); |
| 183 | } |
| 184 | |
| 185 | /** |
| 186 | * Return a promise that will always fulfill with an array containing |