Is there a way to tell if an ES6 promise is fulfilled/rejected/resolved? [duplicate]
They are not part of the specification nor is there a standard way of accessing them that you could use to get the internal state of the promise to construct a polyfill. However, you can convert any standard promise into one that has these values by creating a wrapper, function MakeQueryablePromise(promise) { // Don’t create … Read more