Is there any difference (in JS) between using the double negative !!
and not using it at all?
For example
if (!!variable){...
vs. if (variable){...
I know there are times where I've gotten a warning using the 2nd method..
When should each be used? and when will each throw a warning in the console? (for variables, objects, arrays etc.)
Thanks!!