1 min readJun 27, 2019
We combine two observables with combineLatest (one is the data, the other is the filters) so the result of this combination is an array with both states and filterString — that’s where filterString comes from:
combineLatest(this.states$, this.filter$).pipe(
map(([states, filterString]) => // FILTER HERE)
);