title: managing array prop in react
body: <p>I've a react application, and i've found a bug where i'm filtering an array for searching the current item the user has selected and then i'm going to do stuff with it...but, didn't know that filter function return a reference to the array's item, so, every change i made to the selected item i'm doing the same to the prop array. </p>
  
  <pre><code>const pippo = maledettoArray.filter(item =&gt; item.id === idInfame)[0];
  </code></pre>
  
  <p>How can i filter the prop array to get the specific item without changing it?</p>