Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
Ben Nadel at the jQuery Conference 2009 (Cambridge, MA) with: Karl Swedberg
Ben Nadel at the jQuery Conference 2009 (Cambridge, MA) with: Karl Swedberg@kswedberg )

Valery

Member since Dec 11, 2008

Recent Blog Comments By Valery

  • Javascript's Implicit Boolean Conversions

    Posted on Aug 13, 2007 at 6:44 AM

    Save even more chars: Empty string ("") is also false. Btw, you may use "double negation" instead of "if" statement to convert any value to boolean: var bool = !!someVar; So !!0 == false; !!1 == true; !!"ABC" == true; !!"" == false; Valery... read more »