The difference when using if statement true === something() vs something() === true

前端 未结 0 1879
庸人自扰
庸人自扰 2020-11-21 20:56

I\'ve seen a lot of codes that places boolean in front, followed by comparison operator, and then the variable/function to test



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