title: Search in an Object Array with more than one condition jQuery grep()
body: <p>I have an Object Array with Key-Value pair on jQuery like this</p>
  
  <p><a href="https://i.stack.imgur.com/R7mFM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/R7mFM.png" alt="enter image description here"></a></p>
  
  <p>And I am searching in these arrays to find a match with with an <code>id</code> that I will provide so I have</p>
  
  <pre><code>var result = $.grep(records, function(e){ return e.id== id; });
  </code></pre>
  
  <p>So this looks like, search a record in the array with an <code>id</code> of whatever the value of <code>id</code> that i passed it. It works fine but what if I want to pass two parameters to match the records in the array? let's say <code>columnheader</code> and <code>parent_colheader</code>? What will my previous</p>
  
  <pre><code>var result = $.grep(records, function(e){ return e.id== id; });
  </code></pre>
  
  <p>syntax should be?</p>