Great post! I'm to a big fan of throttling/debouncing and I end up writing my own little helpers over and over.
I'll post my debounce function, happy to get feedback 😅 The benefit in this version is that it accepts arguments and get a proper this-binding when used as event handler - if you're into that sort of thing 😉
Great post! I'm to a big fan of throttling/debouncing and I end up writing my own little helpers over and over.
I'll post my debounce function, happy to get feedback 😅 The benefit in this version is that it accepts arguments and get a proper this-binding when used as event handler - if you're into that sort of thing 😉
Thanks again!