Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/react/react
/ debounce
Function
debounce
packages/react-devtools-extensions/src/main/debounce.js:1–8 ·
view source on GitHub ↗
(fn, timeout)
Source
from the content-addressed store, hash-verified
1
function
debounce(fn, timeout) {
2
let
executionTimeoutId = null;
3
4
return
(...args) => {
5
clearTimeout(executionTimeoutId);
6
executionTimeoutId = setTimeout(fn, timeout, ...args);
7
};
8
}
9
10
export
default debounce;
Callers
1
index.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected