I have arrays like this;

```
$scope.result1 = [
    {id:1, name:'pppp', type:'user', username:'345'},
    {id:2, name:'John', type:'admin', username:'johnny2'},
    {id:3, name:'Peter', type:'user', username:'pete'},
];

$scope.result2 = [
    {id:1, name:'Seema', type:'admin', username:'123'},
    {id:2, name:'John', type:'admin', username:'johnny2'},
    {id:3, name:'Peter123', type:'user', username:'pete'},
];

```

I want to compare result2 with result1 .And store only different values in third array.
Expected result is like;

```
$scope.result = [
        { name:'Seema', type:'admin', username:'123'},
        {name:'Peter123'},
    ];

```

Thanks in advance