title: Splice items from array considering indexes from another array
body: <p>I have an array <code>input</code> and another array <code>indexes</code>. I want to remove item from array <code>input</code> whose index is provided in <code>indexes</code> array.</p>
  
  <p>I have tried it using <code>array.splice</code> in <code>for loop</code> but as <code>item</code> is being removed in each iteration, indexes of other items are being changed.</p>
  
  <p><strong>JavaScript</strong>:</p>
  
  <pre><code>var array = [10, 11, 12, 13, 14, 15];
  var indexes = [0, 1, 2, 3, 4, 5];
  
  indexes.forEach(function(item) {
    array.splice(item, 1);
  });
  
  console.log(array);
  </code></pre>