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
That would be valid: this proposal re-uses the existing optional chaining syntax with no additional restrictions other than "it cannot end with a function call". This is so that developers can re-using their existing knowledge about assignment to member expressions and about optional chaining, without having to remember that when used together there are arbitrary additional restrictions.
The readme shows expr1?.foo().prop[key] = val as an example.
Would this be legal syntax?
The text was updated successfully, but these errors were encountered: