MCPcopy 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

1function debounce(fn, timeout) {
2 let executionTimeoutId = null;
3
4 return (...args) => {
5 clearTimeout(executionTimeoutId);
6 executionTimeoutId = setTimeout(fn, timeout, ...args);
7 };
8}
9
10export default debounce;

Callers 1

index.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected