On Feb 18, 2:20 pm, Kean <shenan...@gmail.com> wrote: > While it would not affect the results, I believe you can shave a few > ms off by using ===
Over 10,000,000 iterations, I see no difference in time between using == and ===. If the return type of 'typeof' varied, a difference might be found. It's just a minor quibble anyway. It's similar to lines like this in the jquery source: if ( typeof text !== "object" && text != null ) Fixing things like this would tighten and improve the code a bit, IMO. Matt Kruse