Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html ng-app="app">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.0/angular.min.js"></script>
  <meta charset="utf-8">
  <title>JS Bin</title>
</head>
<body ng-controller="c">
    
    {{ list | filter : test }}
    
    
</body>
</html>
 
var app=angular.module("app",[]);
app.controller("c", function($scope) {
    
    $scope.list = [10, 20, null, 40];
    
    $scope.test = function(value) {
        return value !== null;
    };
    
});
Output

You can jump to the latest bin by adding /latest to your URL

Dismiss x
public
Bin info
anonymouspro
0viewers