@xotic750/promise-x
v1.1.2
Published
A Promise/A+ and ES2018 implementation.
Downloads
39
Maintainers
Readme
@xotic750/promise-x
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)');
});