Knowing that !!foo
gives you the Boolean value of foo
, I have seen some programmers say that it's better to use !!!foo
instead of !foo
because you are changing it to its Boolean value first and then negating the value.
So my question is,
Is !!!foo
always equals !foo
? (!!!foo === !foo
)