Hard
Which of the following methods will correctly debounce a function call?
1const search = (query) => {2 console.log("Searching for:", query);3};45const debounce = (func, delay) => {6 // Your implementation here7};89const debouncedSearch = debounce(search, 300);10debouncedSearch("hello");11debouncedSearch("world");