Is there any reason for using if(1 || !Foo())?

前端 未结 0 463
终归单人心
终归单人心 2021-02-11 12:36

I read some legacy code:

if ( 1 || !Foo() )

Is there any seen reason why not to write:

if ( !Foo() )
相关标签:
回答
  • 消灭零回复
提交回复
热议问题