8000
If I call debounce like this:
let i = 1; const logValue = debounce(() => console.log(i++), 500, true); logValue(); logValue(); logValue();
it prints 1 and 2. Is there any way to make it print 1 and 3?
1
2
3
I'd like to use it for auto-saving editor updates, so the last call is important.
I couldn't see a way of accomplishing it from the docs. If it's not currently possible, is it something you would consider implementing?
Activity