Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
Ben Nadel at CFUNITED 2010 (Landsdown, VA) with: Jason Dean
Ben Nadel at CFUNITED 2010 (Landsdown, VA) with: Jason Dean@JasonPDean )

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 »