best-promise
select the best promise available at certain moment or leave the choice to the end user
language: also available in: -
Based on any-promise
When testing with Travis-CI best-promise selects a promise library randomly.
In the rest of cases it will work identically to any-promise.
When normal use attempts to load libraries in the following order:
If no library is installed, attempts to export the global Promise
(native or polyfill).
You can specify the PROMISE_IMPL
env variable or the PROMISE_RANDOM
variable to yes
var Promise = Promise; return Promise allxf f init coll ; return { try ; catche ; };
improvements
You can abrevite the common tasks
var Promises = ;var fs = ; Promisesstart{ return fs;};