This is very nice! Look at this optional chaining proposal
obj?.prop = value;
Which would be equivalent to:
if (obj) obj.prop = value;
I need this
https://github.com/nicolo-ribaudo/proposal-optional-chaining-assignment
Mastodon is the best way to keep up with what's happening.
Follow anyone across the fediverse and see it all in chronological order. No algorithms, ads, or clickbait in sight.