Optional Chaining in V8
v8.dev
v8.dev
This is in Chrome Canary nightlies (78) now according to http://chromestatus.com, but I couldn't get it to work, and I scoured all the chrome://flags switches to see if I missed something.
Anyone else have any luck? Here's the code:
const object = {}
const firstName = object?.names?.first ?? '(no first name)'
console.log(firstName)