isFunction(), final…

The other day I realised I actually have not presented the proper shape of the final version of my isFunction() function.

I stumbled upon yepnope.js project and started nosily browsing through the code on Github. If course I smugly noticed that isFunction() in there is “no good”, just to quickly realise I have never published the proper implementation of its final and probably the best version. Here it is then:

Original article is here : https://dbj.org/?p=286

Update 13.Aug.11

Since Gareth insisteth (see the comments bellow), I can do nothing but oblige. Here is one much more robust version, which will work correctly, even in presence of most JavaScript comedians.
[wp-js-fiddle url=”http://jsfiddle.net/dbjdbj/a6wfrvcc/2/” style=”width:100%; height:600px; border:1px dotted #4173A0;”]

Enjoy. Even better: use.

6 thoughts on “isFunction(), final…”

Comments are closed.