title: How to remove string from object key name?
body: <p>I'm trying to remove "personal_" from any object key names.</p>
  
  <p>I tried running a loop and getting the object key name, then using the replace function on it but it doesn't remove the <code>personal_</code>.</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 object = {
    active: false,
    personal_user_metadata: {
      first_name: 'jon',
      last_name: 'doe',
   },
    personal_app_metadata: {
     data: 'blah',
    },
    email: 'jondoe@example.com'
  }
  
  for(name in object){
     name.replace('personal_', '')
  }
  
  console.log(object)</code></pre>
  </div>
  </div>
  </p>