title: JavaScript: Object Rename Key
body: <p>Is there a clever (i.e. optimized) way to rename a key in a javascript object?</p>
  
  <p>A non-optimized way would be:</p>
  
  <pre><code>o[ new_key ] = o[ old_key ];
  delete o[ old_key ];
  </code></pre>