4 ms·
> In a weakly typed language like Javascript, I don't think you'll ever regret being a little more explicit. "!!" is not needed in the shown case. It might be
by vladimir-y 9y ago
> In a weakly typed language like Javascript, I don't think you'll ever regret being a little more explicit.
"!!" is not needed in the shown case. It might be needed if you want to pass somewhere or return "boolean" value, but in the example it's only the "if" thing.