Is object a function : isFunction « Dojo toolkit « JavaScript Tutorial






<html>
  <head>
    <script type="text/javascript">
      var djConfig = {
        baseScriptUri : "js/dojo/"
      };
    </script>
    <script type="text/javascript" src="js/dojo/dojo/dojo.js"></script>
    <script>

      var f1 = function() { };
      var f2 = new Function();
      
      alert(dojo.isFunction(f1));
      alert(dojo.isFunction(f2));

    </script>

  </head>

  <body></body>

</html>








29.17.isFunction
29.17.1.Is object a function