可选链操作符(?.)

const a = {
  b: {
    c: 'hello world'
  }
};
console.log(a?.b?.c); // hello world

原文地址:https://www.cnblogs.com/zhangyue690811/p/14275716.html