title: How do I filter a typescript array with items in another array
body: <p>I have 2 arrays:    </p>
  
  <pre><code> [
    {
      "id": 1,
      "name": "All",
    },
    {
      "id": 2,
      "name": "APR",
    },
   {
      "id": 3,
      "name": "TER",
    }]
  </code></pre>
  
  <p>The second array is <code>["APR", "TER"]</code></p>
  
  <p>I want to filter the first array with the second that is the output should be </p>
  
  <pre><code>  [{
      "id": 2,
      "name": "APR",
    },{
      "id": 3,
      "name": "TER",
    }]
  </code></pre>
  
  <p>Trying this with filter function - is that possible?</p>
  
  <p>Thanks
  Anand</p>