Filter item out : filter « Dojo toolkit « JavaScript DHTML






Filter item out

 
<html>
  <head>
    <script type="text/javascript">
      var djConfig = {
        baseScriptUri : "js/dojo/"
      };
    </script>
    <script type="text/javascript" src="js/dojo/dojo/dojo.js"></script>
  </head>
  <body>
    <script>
      function checkFunc(inItem, inIndex, inArray) {
        return (inItem > 10);
      }
      alert(dojo.filter([2, 5, 7, 9, 11], checkFunc));
    </script>
  </body>
</html>

   
  








Dojo-toolkit.zip( 3,849 k)

Related examples in the same category