title: Typescript - generate TS object from array
body: <p>My problem is that i get an information from server - array of objects. And i would like to "push" every object from array to new object so the inupt looks: </p>
  
  <pre><code>[{key : value}],[{key2:value2}]....
  </code></pre>
  
  <p><strong>And the output should look like:</strong></p>
  
  <pre><code>{key:value,
   key2: value2 ... }
  </code></pre>
  
  <p>I don't know the syntax of "push" to make new object look like my desire output.</p>