Y
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
zhawn
1165 days ago
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...
link
542458
1164 days ago
No, I honestly didn’t know about it! I should have googled it before making my comment… Thanks for letting me know.
link
jholman
1164 days ago
Everyone likes to bag on JS without being willing to learn.
link
johnfn
1165 days ago
You can!
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
link
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...