title: Javascript: filter an array of objects using an array
body: <p>I have an array of Objects:</p>
  
  <pre><code>[
      {id: 1, thing_id: 2},
      {id: 1, thing_id: 3},
      {id: 1, thing_id: 4}
  ]
  </code></pre>
  
  <p>and I want to filter that using an array of thing_ids:</p>
  
  <pre><code>[2,3]
  </code></pre>
  
  <p>I did look at <a href="https://stackoverflow.com/questions/33480627/filtering-an-array-of-objects-using-an-array-without-nested-loops-js">filtering an array of objects using an array without nested loops js</a> but it doesn't seem to work.</p>
  
  <p>Clearly I need to use <code>.filter</code> somehow?</p>
  
  <p>Mick</p>