You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This method will return a new function that will be called only once per group of close calls. After a defined delay it will be able to be called again.
375
+
376
+
### Syntax:
377
+
378
+
var debounceFn = myFn.debounce(delay, leading);
379
+
380
+
### Arguments:
381
+
382
+
1. delay - (*number*, optional, defaults to 250ms) The delay to wait before a call to the debounced function can happen again.
383
+
2. leading - (*boolean*, optional, defaults to false) If the call to the debounced function should happen in leading phase of group of calls or after.
384
+
385
+
### Returns:
386
+
387
+
* (*function*) A debounce function that will be called only once per group of close function calls.
0 commit comments