Every function : every « Dojo toolkit « JavaScript DHTML






Every function

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

      function checkFunc(inVal) {
        return (inVal > 10);
      }
      alert(dojo.every([3, 5, 7, 11, 13], checkFunc));

    </script>

  </head>

  <body></body>

</html>

   
  








Dojo-toolkit.zip( 3,849 k)

Related examples in the same category

1.Get even-ord numbers with every function