You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Imho it would be better to use methods or constants instead of using state strings. e.g. let state = promise.inspect(); console.log(state.isFullfilled()); or console.log(promise.isFulfilled());. Method and constant names can be auto-completed and so harder to mistype.
The text was updated successfully, but these errors were encountered:
I think nothing prevents us from using both. You can always add a few non-enumerable methods to the state object with Object.defineProperty. Or defining them in a prototype would do the same.
Imho it would be better to use methods or constants instead of using state strings. e.g.
let state = promise.inspect(); console.log(state.isFullfilled());
orconsole.log(promise.isFulfilled());
. Method and constant names can be auto-completed and so harder to mistype.The text was updated successfully, but these errors were encountered: