Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
@ivanK_rep, Can you please explain me how to create a test for this kata? I don't know to create the "node" to test (I'm new to JavaScript since 1996!). Thank you!
Idea of "throttle" decorator is running function not more often than given time.
So decorator need somehow keep function call context (arguments and this), updates it after following calls during time period and after time period calls function with last saved arguments/this.
There is no tests in this kata which could be used for check out that we call function with last arguments/this or just call new function after some cooldown period. So in seems this kata suppose creating some sort of synchronous debounce decorator, that looks inapplicable.