Is it worth using the optional sequence operator in javascript, or is it not optimized enough?

前端 未结 0 1577
悲哀的现实
悲哀的现实 2021-02-05 22:44

Is it worth using the optional sequence operator in javascript, or is it not optimized enough?

currentCompany?.name 
or
equally to currentCompany && curre         


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