Why implement jQuery.isFunction when you can also just go typeof variable == 'function'?
-T On Feb 19, 7:54 am, Kean <shenan...@gmail.com> wrote: > Seems like my hunch is incorrect, thanks for correcting. > > On Feb 18, 12:43 pm, Matt Kruse <m...@thekrusefamily.com> wrote: > > > 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