title: Nodejs- Manipulating properties while destructuring
body: <p>I am looking for a smart way to manipulate data while I'm destructuring an object.
  Take a look on the following code:</p>
  
  <pre><code>let employee =  {
     name: 'John Doe',
     birthday: '1980/01/01', // yyyy/MM/dd format
     department: 'R&amp;D'
  }
  
  const { name, birthday, department } = employee
  
  console.log(`${name} is working under ${department} and their birthday is on ${birthday}.`)
  </code></pre>
  
  <p>Let's say I want to adjust this to show their age instead of their birthday, I have a method that calculates how old they are, which is called <code>calcAge</code>.</p>
  
  <p>I'm expecting the code to revolve around this (or equivalent to):</p>
  
  <pre><code>let employee =  {
     name: 'John Doe',
     birthday: '1980/01/01', // yyyy/MM/dd format
     department: 'R&amp;D'
  }
  
  // Option 1: Current state:
  const { name, birthday , department } = employee
  const age = calcAge(birthday)
  
  // Option 2: Required state:
  // const { name, age: calcAge(birthday), department } = employee
  // Note this:    ^^^^^^^^^^^^^^^^^^^^^^
  
  console.log(`${name} is working under ${department} and they are ${age} years old.`)
  </code></pre>
  
  <p>Hope this makes sense, if you have any questions please feel free to ask.</p>