A Promise/A+ and ES2018 implementation.
MIT License
A Promise/A+ and ES2018 implementation.
Passes the Compliances tests for Promises/A+
Passes the ECMAScript 6 Promises Test Suite.
Has ES2018 finally implementation.
Can be sub-classed.
Example
import P from 'promise-x';
P.resolve('Hello')
.then((value) => {
console.log(value);
})
.catch((reason) => {
console.log(reason);
})
.finally(() => {
console.log('settled (fulfilled or rejected)');
});