Mar 15, 2021
For the life of me I can't figure out how your handler callback works in the codepen example. When you define const throttledHandler and pass handler as the first parameter to throttle, you invoke the function right away by passing it the config.
I have no clue how your throttle function is able to execute the everytime, when you passed an invoked function initially.
Any help would be GREATLY appreciated.