Current debounce implementation has only leading flag.
With leading true, function gets invoked on both beginning and edge of the timeout. This is slightly a different implementation compared to lodash/debounce implementation.
Need trailing flag as well, to control the invocation of function.
https://lodash.com/docs/4.17.15#debounce similar to this
Current debounce implementation has only leading flag.
With leading true, function gets invoked on both beginning and edge of the timeout. This is slightly a different implementation compared to lodash/debounce implementation.
Need trailing flag as well, to control the invocation of function.
https://lodash.com/docs/4.17.15#debounce similar to this