title: Check and get data from an array in JavaScript
body: <p>I have an object:</p>
  
  <pre><code>var Obj1 = {id: 1, name: 'Apple'}
  </code></pre>
  
  <p>And an array object:</p>
  
  <pre><code>var ArrObj = [ {id: 1, name: 'Apple', 'eat': 'rice}, {'id: 2', 'name': 'Banana'}]
  </code></pre>
  
  <p>How do I check Obj1.id in ArrObj? And I want the result to be: <code>{ id:1, name: 'Apple', 'eat':'rice'}</code></p>