Enter the username of a Github user to get their full name. Request on keystroke with XHR cancellation instead of debounce, which results in less latency and better user experience. Very simple implementation with RxJS. The magic is the .switch
operator.
See live on esnextbin, don't forget to open Network tab in DevTools to see cancellation.