Filter item out : filter « 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>
  </head>
  <body>
    <script>
      function checkFunc(inItem, inIndex, inArray) {
        return (inItem > 10);
      }
      alert(dojo.filter([2, 5, 7, 9, 11], checkFunc));
    </script>
  </body>
</html>








29.12.filter
29.12.1.Filter item out