title: one liner to remove a n element from an object
body: <p>This is related to storing manipulated objects in react, but is also a general javascript question.</p>
  <p>In react, you usually take a current state object, and add to it like so:</p>
  <pre class="lang-js prettyprint-override"><code>setFormErrors({...formErrors, agreeToRefund: 'Some message'})
  </code></pre>
  <p>where formErrors and setFormErrors is what comes out of useState() hook.</p>
  <p>To do a delete, you have to the more verbose:</p>
  <pre class="lang-js prettyprint-override"><code>const newFormErrors = {...formErrors};
  delete newFormErrors.agreeToRefund;
  setFormErrors(newFormErrors)
  </code></pre>
  <p>Which is a little tedious. Is there a more abbreviated 1 liner to do this?</p>