Use index array to filter another array
<p>I have two arrays </p>

<pre><code>arr = [ aaa, xxx, aaa, xxx, aaa ];

foundIn = [ 1, 3 ];
</code></pre>

<p>As you can see <strong>foundIn</strong> has the index numbers of <strong>arr</strong> that I would like to remove. How can I remove the values in <strong>arr</strong> using the the index values in <strong>foundIn</strong></p>

<pre><code>The output being: newArr = [ aaa, aaa, aaa ];
</code></pre>

<p>This is a simplified version of my issue.</p>

<p>Any help in this would be greatly appreciated.</p>