News for hackers. Stuff that matters.
Re:No-Bullshit Guide to Detecting Everything in HTML5 by uggedal on Friday May 14, 2010 @07:28AM (#1347077)
Double negation is used for explicit boolean conversion, i.e.:

    !!0 -> false
    !!1 -> true
    !!"" -> false
    !!"s" -> true
    !!null -> false
    !!undefined -> false

There are no comments on this comment yet.