I've been looking through some javascript code, and In various places, the developer uses !1
, like so:
var somevar = !1;
from my understanding !1
is the same as false
.
Is there any practical (whether it is to cover some edge case, performance, etc.) reason as to why they are using !1
instead of false
?