Skip to main content
Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.


Member since Oct 24, 2012

Recent Blog Comments By CWO

  • Javascript's IN Operator Does Not Work With Strings

    Posted on Oct 24, 2012 at 9:40 AM

    Well, it's pretty simple, actually. Consistent results come out of consistent data. You are initialising your sting as a primitive value and your number as an object. Native values don't have properties and in particular they don't have the method 'in'. To have normalised data you can compare you ... read more »