Sobes.tech
Middle

Implement a `debounce` function that supports immediate invocation at the start of a series of events (`leading`), a trailing invocation at the end of the series by default, and a `debounceFunc.cancel()` method to cancel the scheduled call.