It’s a handy way to convert any value to a Boolean. If window.chrome
is defined and done non-empty value, double negation turns it into just true
.
It’s a handy way to convert any value to a Boolean. If window.chrome
is defined and done non-empty value, double negation turns it into just true
.
I mean, having one in ten of your fellow soldiers murdered by their own commander is pretty horrific, and I think that’s the spirit of its modern usage.