title: Conversion of list of JSON array to a single object in Angular
body: <p>I have an array list which needs to be converted to a single object with few of the values from array list using TypeScript in Angular 8. Below is the array:</p>
  
  <pre><code>"arrayList": [{
      "name": "Testname1",
      "value": "abc"
    },
    {
      "name": "Testname2",
      "value": "xyz"
    }
  ]
  </code></pre>
  
  <p>This needs to be converted to the below format,</p>
  
  <pre><code>data: {
    "Testname1": "abc",
    "Testname2": "xyz",
  }
  </code></pre>
  
  <p>No matter how much i try, i end up creating a list instead of a single object. Can you please help on the same?</p>