Question from the Introduction to RxJS test

How to listen to an input field in order to offer auto-completion to my user in RxJS

Hard

I wana listen to an input field in order to offer auto-completion to my user.

const input = document.getElementById(id)

fromEvent(input, 'keydown').pipe(
   ***************,
   map(e => e.target.value)
)

By which operator can I replace ******* to avoid making an API call each time the user presses a key?

Author: Amine BouchamStatus: PublishedQuestion passed 108 times
Edit
0
Community EvaluationsNo one has reviewed this question yet, be the first!