Optional Chaining
The ?. operator, which stops and returns undefined when the value before it is nullish.
What is Optional Chaining in JavaScript?
Optional Chaining — The ?. operator, which stops and returns undefined when the value before it is nullish.
const customer = null;
const city = customer?.address?.city;
Level: Apprentice · More JavaScript terms at this level
Updated