4 ms·
Optional chaining is also now supported in JS itself, with growing browser support: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/
by eyesee 6y ago
Optional chaining is also now supported in JS itself, with growing browser support: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...
- y-c-o-m-b 6y agoWell now I feel stupid. I was irritated just yesterday at not having this feature available in JavaScript. I should have done a search. Looks like there's a babel plugin too: https://babeljs.io/docs/en/next/babel-plugin-proposal-optional-chaining https://babeljs.io/docs/en/next/babel-plugin-proposal-option...