title: JS find() not working on array of objects
body: <p>I have an array, <code>clients</code>, which I want to run <code>array.find()</code> on. This array contains objects, and usually looks something like this:</p>
  
  <pre><code>[ { customId: 'user1', clientId: 'TPGMNrnGtpRYtxxIAAAC' },
    { customId: 'user2', clientId: 'G80kFbp9ggAcLiDjAAAE' } ]
  </code></pre>
  
  <p>This is where I encounter a problem. I am trying to use <code>find()</code> to see if any object (or part of an object) in the array matches a certain variable, <code>recipient</code>, which usually contains a value like <code>user1</code>. the code I am using to do this is:</p>
  
  <pre><code>function checkID(recipient) {
         return recipient;
          }
      var found = clients.find(checkID);
  </code></pre>
  
  <p>This always returns the first object in the array. Am I using <code>find()</code> wrong, or is there a better way to do this?</p>