Check for false

前端 未结 6 2003
孤城傲影
孤城傲影 2021-02-05 02:43

Is there any better way of doing this?

if(borrar() !== false)
{
    alert(\'tatatata bum bum bum prapra\');
}
return false;
6条回答
  •  我在风中等你
    2021-02-05 03:09

    Checking if something isn't false... So it's true, just if you're doing something that is quantum physics.

    if(!(borrar() === false))
    

    or

    if(borrar() === true)
    

提交回复
热议问题