title: Find all objects with matching Ids javascript
body: <p>I'm trying to get all objects with matching id's from my students array and get other property values from them...</p>
  
  <p>For instance my array looks like this:</p>
  
  <pre><code>const students = [
      {id: 1, name: 'Cal', location: 'McHale' },
      {id: 2, name: 'Courtney', location: 'Sydney Hall' }, 
      {id: 1, name: 'Cal', location: 'Syndey hall' }
  ]
  </code></pre>
  
  <p>So my expected output would grab all instances of id: 1.</p>
  
  <pre><code>{id: 1, name: 'Cal', location: 'McHale' },
  {id: 1, name: 'Cal', location: 'Syndey hall' }
  </code></pre>
  
  <p>I'll eventually want to remove duplicate names and display in a list like so... (But that's down the line. For now I just want to grab matching objects).</p>
  
  <pre><code>Id: 1    Name: Cal    Location: McHale
                                  Syndey Hall
  </code></pre>
  
  <p>I've tried: </p>
  
  <pre><code>const result = _.find(students, {student_id: studentId});
  </code></pre>
  
  <p>But that doesn't seem to work, it just returns one of the objects with that id..</p>
  
  <pre><code>{id: 1, name: 'Cal', location: 'McHale' },
  </code></pre>
  
  <p>How can I make this work?</p>