Introduction Searching is an essential functionality in most commercial mobile apps as it allows users to quickly retrieve their content of interest rather than going through all the provided content which results in a poor user experience. Implement...

Markdown supported · ⌘↵ to post
Karlo B
Pretty cool, but this is when you need a debounced effect on state change. This won't work if you want to debounce, say, button clicks or generally function calls.
So I took inspiration from your code and created this which would be more in line with Lodash's debounce: