optional question mark and object destruction

后端 未结 0 321
面向向阳花
面向向阳花 2021-01-15 11:58
const { isSaved } = props?.options;

does this code make sense? what\'s the purpose of using ? here?

is it better if I do

相关标签:
回答
  • 消灭零回复
提交回复
热议问题