Skip to content

Instantly share code, notes, and snippets.

@cartant
Last active May 11, 2018 18:55
Show Gist options
  • Select an option

  • Save cartant/5fbb12c55eca8f0336519084e343fa45 to your computer and use it in GitHub Desktop.

Select an option

Save cartant/5fbb12c55eca8f0336519084e343fa45 to your computer and use it in GitHub Desktop.
import { Observable } from "rxjs";
import { debounceTime, distinctUntilChanged } from "rxjs/operators";
const debounceInput = (changes: Observable<string>) => changes.pipe(
debounceTime(400),
distinctUntilChanged()
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment