Hacker News new | ask | show | jobs
by 542458 1165 days ago
Good post. That safe navigation operator is very cool and something I wish you could do in JS.
2 comments

Not sure if I'm missing some sarcasm but JavaScript has had the equivalent Optional chaining operator for years now

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

No, I honestly didn’t know about it! I should have googled it before making my comment… Thanks for letting me know.
Everyone likes to bag on JS without being willing to learn.