title: Underscore.js - Filtering a json array based on a property
body: <p>Below is my json array, and I'm trying to filter it based on active users.</p>
  
  <pre><code>var users = [{"name":"user1","isActive":true}, {"name":"user2","isActive":false}, {"name":"user3", "isActive":true}];
  
   $scope.filteredUsers = _.filter(users, function(user) { return user.isActive == true; });
  </code></pre>
  
  <p>I would want the output to be </p>
  
  <pre><code> $scope.filteredUsers = [{"name":"user1","isActive":true}, {"name":"user3", "isActive":true}]; 
  </code></pre>
  
  <p>what am I doing wrong ? Is this the right approach or should I use _.where ? Thanks</p>