106
rated 0 times
[
107]
[
1]
/ answers: 1 / hits: 32135
/ 11 Years ago, fri, january 31, 2014, 12:00:00
I'm used to Dojo promises, where I can just do the following:
promise.isFulfilled();
promise.isResolved();
promise.isRejected();
Is there a way to determine if an ES6 promise is fulfilled, resolved, or rejected? If not, is there a way to fill in that functionality using Object.defineProperty(Promise.prototype, ...)
?
More From » promise