minus-squarerektdeckard@lemmy.worldtoProgrammer Humor@programming.dev•"Works for me"linkfedilinkarrow-up0·5 days agoIt’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. linkfedilink
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 justtrue
.