Some function : some « Dojo toolkit « JavaScript Tutorial






<html>
  <head>
    <style>
      .myStyle {
        color : #ff0000;
      }
    </style>
    <script type="text/javascript">
      var djConfig = {
        baseScriptUri : "js/dojo/"
      };
    </script>
    <script type="text/javascript" src="js/dojo/dojo/dojo.js"></script>
    <script>
      var a = [ 1, 3, 5, 7, 9, 11 ];
      alert(dojo.some(a, function(val) { return val > 6; }));
    </script>
  </head>
  <body></body>
</html>








29.11.some
29.11.1.Some function
29.11.2.some function for even-odd numbers