Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
I am the chief technical officer at InVision App, Inc - a prototyping and collaboration platform for designers, built by designers. I also rock out in JavaScript and ColdFusion 24x7.
Meanwhile on Twitter
Loading latest tweet...
Ben Nadel at CFUNITED 2009 (Lansdowne, VA) with:

Han

Member since May 18, 2010

Recent Blog Comments By Han

  • Javascript's IN Operator Does Not Work With Strings

    Posted on Jun 30, 2011 at 4:43 AM

    @Han, Damnit, typos, should be: Wait a minute... var str = new String( 'primitive-valued string literal' ); console.log( str.split(' ') ); //=> obviously ["primitive-valued", "string", "literal"] str.split = function(){ return 'overridden!'; }; console.log( s... read more »

  • Javascript's IN Operator Does Not Work With Strings

    Posted on Jun 30, 2011 at 4:37 AM

    I'm surprised no one else has explained this more clearly, though most of the pieces are scattered throughout the comments. I'm going to start by poking some holes in your tests, and also point out some JavaScript quirks you probably haven't noticed, which I hope will motivate my excruciatingly det... read more »

  • Javascript's Implicit Boolean Conversions

    Posted on Feb 11, 2011 at 3:40 AM

    @Victor: http://bclary.com/2004/11/07/#a-11 .9.3 Step 18 would be the culprit here.... read more »

  • Javascript's Implicit Boolean Conversions

    Posted on May 18, 2010 at 4:19 PM

    This is very clearly spelled out in the ECMAScript spec (section 9.2): http://www.ecma-international.org/publications/files/ECMA-ST-ARCH/ECMA-262 ,%203rd%20edition,%20December%201999.pdf It's not as clear in the JScript spec, but this appears to be normalizing: http://msdn.microsoft.com/en-us/lib... read more »