Debounce

Clean, typescript, error handling


Requested feedback

I thought about returning Promise from debounce, but then it becomes tricky to handle multiple invocations of the debounced function. Also, there are some complications with "this" context, I skipped this entirely.

Comments

You must be signed in to post a comment

Get future questions delivered straight to your inbox for free

Sign up and receive instant access to new questions when we publish them.

We‘ll only use your information to deliver new questions and to provide you updates about our product. We‘ll never spam you or sell your information without your consent. Unsubscribe at any time.