Every function : every « 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>

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

    </script>

  </head>

  <body></body>

</html>








29.9.every
29.9.1.Every function
29.9.2.Get even-ord numbers with every function