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
Perhaps there is a good reason for this but I never understood why the compound assignment ||= is not part of js. This would be helpful to ensure a variable to be defined.
As much as I've personally wanted this, we really can't do this without it being added to ECMAScript itself, since adding syntactic features that aren't strictly on the type side doesn't fit into our design goals.
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.
Perhaps there is a good reason for this but I never understood why the compound assignment ||= is not part of js. This would be helpful to ensure a variable to be defined.
Given:
This would let us write:
Instead of
Of course we could have used
But as a general case, this should work on any variable
instead of
The text was updated successfully, but these errors were encountered: