title: What is the most efficient way to update a key inside of an array of objects in Javascript?
body: <p>If I have a JavaScript array including 10 objects with the following syntax:</p>
  <pre><code>const myArray = [{Age: 10, Name: Justin}, {Age: 15, Name: Bob}, ..., {Age: 20, Name: Jon}];
  </code></pre>
  <p>What's the most efficient way to update the Name key to be DisplayName. This is my currently logic:</p>
  <pre><code>myArray = myArray.map(item=&gt;{return {age:item.age, displayName:item.name }}); 
  </code></pre>