sindresorhus / debounce

Delay function calls until a set time elapses after the last invocation
Other
798 stars 80 forks source link

Add debounce state check function #44

Closed vadim-isakov closed 1 month ago

vadim-isakov commented 1 month ago

This PR adds a new feature that allows checking the current debounce state through an isDebouncing method. The PR also includes unit tests.

sindresorhus commented 1 month ago

I think isPending would be a better name. And it should be a property (getter), not a method.