mediumJavaScript

Implement Debounce Function

Given a function `fn` and a time in milliseconds `t`, return a **debounced** version of that function. A **debounced** function is a function whose execution is delayed by `t` milliseconds and whose execution is cancelled if it is called again within that window. The debounced function should also receive the passed parameters.
Ensure function signatures match starter code to run test cases.
index.js
Loading...

Test Case #1

Input: ((a) => a), 50

Expected: undefined