Some function : some « Dojo toolkit « JavaScript DHTML






Some function

 

<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>

   
  








Dojo-toolkit.zip( 3,849 k)

Related examples in the same category

1.some function for even-odd numbers