title: Concat two objects in typescript
body: <p>I have two objects with the same properties but holding different values</p>
  
  <p>EXAMPLE:</p>
  
  <pre><code>export class obj1{
    arr1: values[]
    dic1: { [key: string]: Value; };
    bool1: boolean
  }
  export class obj2{
    arr1: values[]
    dic1: { [key: string]: Value; };
    bool1: boolean
  }
  </code></pre>
  
  <p>Where the property of the object is an array or dictionary I want obj2 values to add to the values of obj1. Where there are boolean\string\number properties I want obj2 properties to replace obj1 </p>
  
  <p>Is there a clean way of doing this in a few lines or will I have to map every property.</p>