title: How can i remove a field from an object
body: <p>I have an array of object. For doing one opetation I need to remove few fields from this object and for some other operation I have to use the whole fields</p>
  
  <p>But both of the array removing "regex" field. What is the mistake I am doing here?</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var newob = {};
  var myObject = {
    "ircEvent": "PRIVMSG",
    "method": "newURI",
    "regex": "^http://.*"
  };
  newob = JSON.stringify(myObject);
  delete newob.regex;
  console.log("Test1", newob);
  console.log("Test2", myObject);</code></pre>
  </div>
  </div>
  </p>