I have two objects with the same properties but holding different values
EXAMPLE:
export class obj1{
arr1: values[]
dic1: { [key: string]: Value; };
bool1: boolean
}
export class obj2{
arr1: values[]
dic1: { [key: string]: Value; };
bool1: boolean
}
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
Is there a clean way of doing this in a few lines or will I have to map every property.