Ternary operator vs let variable with an if statement

后端 未结 0 1212
误落风尘
误落风尘 2021-01-22 06:22

Which one is more performant?

const closest = settings?.ranks?.length 
                ? settings?.ranks?.sort((a, b) => a.invites - b.invites).find(({ invites         


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