promise-fail
Promise.all for failures Check if all promises fail
> npm install promise-fail || yarn add promise-fail
Require module
Promisefail = ; // why not// orconst checkPromisesFailure = ;
Usage
This module checks if all Promises given in arguments fail and returns the first non-failing Promise
const p1 = Promise;const p2 = Promise;const p3 = Promise;const p4 = Promise; // this will print 'All promises have failed'Promise ; // this will print 'Promise { 'YES' }' or alikePromise ;