jQuery.whenAll()
$.whenAll()
is a small utility function that, like $.when()
that it decorates,
aggregates multiple promises into a single promise, but unlike the later, it always waits for all promises
to have a final state, either resolved or rejected, before finalizing the returned promise.
The function also supports the unique jQuery Deferred progress
notifications and implements its own notifying rules
for the returned promise (see the respective comment in Usage).
Installation
$ npm install jquery-whenall
Usage
$ // promise3, ... ;