title: Concatenate each object property values of javascript array , properties are list of strings in javascript
body: <p>i have array of objects need to convert to new array with new property using another list of strings to read the property in javascript.</p>
  <p>var output =</p>
  <pre><code>[
   {Id: '000000CayeAAC', Name: 'KCP13', FTA: 'LOS', FTN: 'M'}
   {Id: '000000CayLAAS', Name: 'KCN15', FTA: 'DC', FTN: 'M'}
   {Id: '000000CaxXAAS', Name: 'KCA21', FTA: 'AUS', FTN: 'M'}
   {Id: '000000CaxCAAS', Name: 'KCZ43', FTA: 'CA', FTN: 'M'}
  ]
  </code></pre>
  <p>var mypropertylist = ['Name','FTA','FTN'];</p>
  <p><strong>i want to new array is like below</strong></p>
  <p>var newArray =</p>
  <pre><code> [ 
    {value: '000000CayeAAC', concatName: 'KCP13 - LOS - M'}
    {value: '000000CayLAAS', concatName: 'KCN15 - DC - M'}
    {value: '000000CaxXAAS', concatName: 'KCA21 - AUS - M'}
   ]
  </code></pre>
  <p>i tried this way</p>
  <pre><code>output.map(item=&gt;{
                      
                      this.newArray  = [...this.newArray,
                                              {value:item.Id, 
                                               concatName:item.Name + ' - '+item.FTA+ ' - '+item.FTN}];
  </code></pre>
  <p>i got desired output but i want to get dynamically by using <code>mypropertylist</code></p>
  <p>Thanks in Advance!</p>