title: angularjs filter based on particular key (exact match)
body: <p>I want to filter an angularjs array say,</p>
  
  <pre><code>$scope.myObj = [
         {id:1,name:'foo'},
         {id:2,name:'bar'},
         {id:10,name:'quad'},
         {id:13,name:'cad'}
      ]
  </code></pre>
  
  <p>based particularly on <code>id = 1</code>. If i use</p>
  
  <pre><code>console.log($filter('filter')($scope.myObj, 1));
  </code></pre>
  
  <p>it will return all the object that contain <code>1</code>. How can i restrict to filter only required object?</p>
  
  <p><strong>EDIT:</strong> It can solved by using `true for exact match based on answer below.</p>
  
  <pre><code>console.log($filter('filter')($scope.myObj, {id: 1}, true));
  </code></pre>