LiveLoveApp logo

Solution - Filtering Operators

Solution

values$
  .pipe(
    filter((value) => value !== 4),
    distinctUntilChanged()
  )
  .subscribe(console.log);