title: How do I remove a property from a JavaScript object?
body: <p>Given an object:</p>
  <pre><code>let myObject = {
    &quot;ircEvent&quot;: &quot;PRIVMSG&quot;,
    &quot;method&quot;: &quot;newURI&quot;,
    &quot;regex&quot;: &quot;^http://.*&quot;
  };
  </code></pre>
  <p>How do I remove the property <code>regex</code> to end up with the following <code>myObject</code>?</p>
  <pre><code>let myObject = {
    &quot;ircEvent&quot;: &quot;PRIVMSG&quot;,
    &quot;method&quot;: &quot;newURI&quot;
  };
  </code></pre>