bluebird-ff
Usage
The library can be used as a bluebird replacement:
var Promise = ;
You can use it as standalone functions:
var bff = ;
Also, you can "install" it on a target:
var Promise = ; ; moduleexports = Promise;
Functions
pif(test, consequent, alternate)
Calls consequent
if test
succeeds, otherwise, calls alternate
.
when(test, consequent)
Calls consequent
only if test
succeeds.
unless(test, consequent)
Calls consequent
only if test
fails.
and(fn)
Useful for chaining several results, example:
return Promise;
propsWithErrors(promises)
Like Promise.props, but returning AggregateError with each error.
License
Check here.