I have a tough requirement needed your advises.

I have 2 arrays:

```
var array1 = [{ 'x': 1, 'z': 2 }, { 'x': 2, 'z': 1 }];
var array2 = [{ 'x': 1, 'y': 1 }, { 'x': 2, 'y': 3 }];

```

Requirement: merge 2 array into one with format: 

```
[{ 'x': 1, 'y': 1, 'z': 2 }, { 'x': 2, 'y': 3 , 'z': 1 }]

```

I have gone through [lodash](https://lodash.com/docs/4.17.10) library, features like 'merge' or 'union' don't serve for this purpose.

Any solutions are welcomed and appreciated