We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Would you please add logical assignment operators as the proposal is in stage 4:
a ||= b; a &&= b; a ??= b;
https://github.com/tc39/proposal-logical-assignment
The text was updated successfully, but these errors were encountered:
Thanks for the report, this does look like a very useful ES2021 feature.
(Full list is at https://github.com/tc39/proposals/blob/master/finished-proposals.md)
Sorry, something went wrong.
yes, i currently use this syntax for singletons:
class Singleton { static instance() { return this.instance ?? (this.instance = new this()); } }
which can be replaced by:
return this.instance ??= new this();
No branches or pull requests
Would you please add logical assignment operators as the proposal is in stage 4:
https://github.com/tc39/proposal-logical-assignment
The text was updated successfully, but these errors were encountered: