Hacker News new | ask | show | jobs
by ollerac 3000 days ago
If you use Babel 7, you can install a plugin [0] to get the optional chaining syntax [1] that's currently a TC39 Stage 1 proposal!

[0] https://www.npmjs.com/package/babel-plugin-transform-optiona...

[1] https://github.com/tc39/proposal-optional-chaining

2 comments

Yes this is a much better alternative in my opinion.
Oh boy, this is just making me miss Swift anymore...