Subsequent calls to the debounced function debounced.callback return the result of the last func invocation. Note, that if there are no previous invocations it's mean you will get undefined. You should check it in your code properly.
debounced.callback
Subsequent calls to the debounced function
debounced.callbackreturn the result of the last func invocation. Note, that if there are no previous invocations it's mean you will get undefined. You should check it in your code properly.