{"name":"jQuery.isFunction","type":"method","title":"jQuery.isFunction()","deprecated":null,"removed":null,"desc":"Determine if the argument passed is a Javascript function object. ","categories":["utilities","version/1.2"],"entries":[{"return":"boolean","signatures":{"added":"1.2","argument":{"desc":"Object to test whether or not it is a function.","name":"obj","type":"PlainObject"}},"examples":[{"desc":"Test a few parameter examples.","code":"\nfunction stub() {}\nvar objs = [\n function() {},\n { x:15, y:20 },\n null,\n stub,\n \"function\"\n];\n\njQuery.each( objs, function( i ) {\n var isFunc = jQuery.isFunction( objs[ i ]);\n $( \"span\" ).eq( i ).text( isFunc );\n});\n","css":"\n div {\n color: blue;\n margin: 2px;\n font-size: 14px;\n }\n span {\n color: red;\n }\n","html":"\n
Note: As of jQuery 1.3, functions provided by the browser like alert() and DOM element methods like getAttribute() are not guaranteed to be detected as functions in browsers such as Internet Explorer.