Sobes.tech
Junior — Senior

Debounce function implementation

livecode

Task condition

It is necessary to write a debounce function that takes another function and a delay in milliseconds as arguments. The debounce function should return a wrapper that delays the call of the passed function by the specified interval. If the wrapper is called again within this interval, the timer should reset and start anew.