JavaScript Tutorial/Dojo toolkit/filter
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>