Angular 8 : Merging two objects in an array : <p>I have a couple of objects inside of an array :</p>

<pre><code>array1 =[{name : "Cena", age : 44},{job : "actor", location : "USA"}]
</code></pre>

<p>is there a way for me to merge these two objects to get something like : </p>

<pre><code>array2 =[{name : "Cena", age : 44, job : "actor", location : "USA"}]
</code></pre>

<p>I tried looping through the elements but it is not a good option if the object is a big one, I guess. Any good solution using typescript?</p>
