HACKER Q&A
📣 QuestionsForU

Dozens of transpile mutants for JavaScript and no Elvis Operator. Why?


Why is there no Elvis Operator for object member access?

const a = someObject?mightExist?couldExist?shouldExist?value


  👤 moxylush Accepted Answer ✓
I've been using Elvis or (nullish chaining) in Chrome extensions. I think the syntax is ?. (Question mark period).