title: react: how to filter an array of objects in props
body: <p>I have <code>props</code> with following data</p>
  
  <pre><code>test1: abc
  id: 1
  myArray: Array(3)
  0: {a:abc, b:cde, aid: 1}
  1: {e:age, f:ade, aid: 2}
  2: {t:are, h:had, aid: 1}
  </code></pre>
  
  <p>I want to filter props and update array to have only the values that match <code>id</code> and <code>aid</code> </p>
  
  <p>So the props should look like below:</p>
  
  <pre><code>test1: abc
  id: 1
  myArray: Array(3)
  0: {a:abc, b:cde, aid: 1}
  2: {t:are, h:had, aid: 1}
  </code></pre>
  
  <p>How can i do that?</p>