AdvancedJavaScript

Implement debounce

Write a debounce function that delays invoking a function until after a specified wait time.

Examples

Input: debounce(() => console.log("Called"), 300)

Output: Function called after 300ms delay

Your Solution

Output

Click 'Run Code' to see the output