title: Delete duplicate keys from an array of javascript objects based on keys present in another array
body: <pre><code>var toRemove = [
    &quot;amount_after_regular_discount&quot;,
    &quot;amount_after_to&quot;,
    &quot;amount_after_activ_disc&quot;,
    &quot;amount_after_activ_plus_disc&quot;,
    &quot;total_advance_tax&quot;,
    &quot;amount_after_special_discount&quot;,
    &quot;amount_after_discount&quot;,
  ];
  var items = [
    {
      zone: &quot;North&quot;,
      unique_customers: &quot;90&quot;,
      total_customers: &quot;90&quot;,
      orders: &quot;90&quot;,
      total_of_item_purchased_price: &quot;429432.13&quot;,
      amount_without_discount: &quot;415632.13&quot;,
      amount_after_to: &quot;378418.72&quot;,
      amount_after_activ_disc: &quot;378418.72&quot;,
      amount_after_activ_plus_disc: &quot;378418.72&quot;,
      total_gst: &quot;0.00&quot;,
      total_advance_tax: &quot;0.00&quot;,
      amount_after_discount: &quot;378418.72&quot;,
      amount_after_tax: &quot;378418.72&quot;,
      sale_date: &quot;2021-09-01&quot;,
    },
    {
      zone: &quot;North&quot;,
      unique_customers: &quot;90&quot;,
      total_customers: &quot;90&quot;,
      orders: &quot;90&quot;,
      total_of_item_purchased_price: &quot;429432.13&quot;,
      amount_without_discount: &quot;415632.13&quot;,
      amount_after_to: &quot;378418.72&quot;,
      amount_after_activ_disc: &quot;378418.72&quot;,
      amount_after_activ_plus_disc: &quot;378418.72&quot;,
      total_gst: &quot;0.00&quot;,
      total_advance_tax: &quot;0.00&quot;,
      amount_after_discount: &quot;378418.72&quot;,
      amount_after_tax: &quot;378418.72&quot;,
      sale_date: &quot;2021-09-01&quot;,
    },
  ];
  </code></pre>
  <p>I want to remove all keys included in the array <code>toRemove</code> from the <code>items</code> array of objects. so I want to get the resulted array of objects without all keys that are included in <code>toRemove</code> array</p>