I have two observables:

```
interface Hour {
   id:string;
}

const hours$: Observable<Hour[]> = this.hoursCollection.valueChanges();
const availableHours$: Observable<Hour[]> = this.availableHoursCollection.valueChanges()

```

I'm combining the two observables  

I have some duplicate items that have the same id as a value  

if the hours.id === availableHours.id then the object in hours should be filtered out 

I tried distinct but I don't get the part where you compare values

```
this.events = Observable.combineLatest(hours$, availableHours$, (hours, availableHours) => [...hours, ...availableHours]).distinct()

```