Sobes.tech
Junior — Senior

Creating a call rate limiter function

livecode

Task condition

Implement the function throttle(fn, delay), which returns a wrapper ensuring that the original function fn is called no more than once within the specified delay interval in milliseconds. All calls that occur during the restriction period should be ignored.