We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 13f8243 commit 7151addCopy full SHA for 7151add
snippets/javascript/function-utilities/throttle-function.md
@@ -18,6 +18,7 @@ const throttle = (func, limit) => {
18
};
19
20
// Usage:
21
+// Ensures the function can only be called once every 1000 milliseconds
22
const logScroll = throttle(() => console.log("Scroll event triggered"), 1000);
23
24
// Attach to scroll event
0 commit comments