title: How to check if array of object contains a string
body: <p>let's say I have an array of objects:</p>
  
  <pre><code>let arr = [
     {
      name: 'Jack',
      id: 1
     },
     {
      name: 'Gabriel',
      id: 2
     },
     {
      name: 'John',
      id: 3
     }
  ]
  </code></pre>
  
  <p>I need to check whether that array includes the name 'Jack' for example using:</p>
  
  <pre><code>if (arr.includes('Jack')) {
     // don't add name to arr
  
  } else {
    // push name into the arr
  
  }
  </code></pre>
  
  <p>but arr.includes('Jack') returns false, how can I check if an array of objects includes the name?</p>