title: Replace a key in an object while spreading in Javascript
body: <p>I have the below object,</p>
  <pre><code>const obj = {
    'a': 1,
    'b': 2,
    'c': 3,
    'd': 4,
    .
    .
    .
    .
    'z': 26
  }
  </code></pre>
  <p>I want to have a new object which will contain all the keys as object <code>obj</code>, but instead of one specific key, I want it to be replaced with another key, say I want to omit key <code>'a'</code> and replace it with <code>'new_a'</code>. Below way doesn't remove the original key <code>'a'</code>. Is there a way in which I can achieve it with aliasing? Or deleting key <code>'a'</code> is the only option?</p>
  <pre><code>const obj2 = {
     ...obj,
     'new_a': 111
  }
  </code></pre>
  <p>I want obj2 to be like this-</p>
  <pre><code>{
     'new_a': 111,
     'b': 2,
     'c': 3,
     .
     .
     .
     .
     'z': 26 
  }
  </code></pre>