Skip to content

Commit b5b86f4

Browse files
authored
Merge pull request #1313 from paroche/patch-14
Update task.md
2 parents ade541b + cdde99f commit b5b86f4

File tree

1 file changed

+2
-2
lines changed
  • 1-js/06-advanced-functions/09-call-apply-decorators/03-debounce

1 file changed

+2
-2
lines changed

1-js/06-advanced-functions/09-call-apply-decorators/03-debounce/task.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ importance: 5
66

77
The result of `debounce(f, ms)` decorator should be a wrapper that passes the call to `f` at maximum once per `ms` milliseconds.
88

9-
In other words, when we call a "debounced" function, it guarantees that all other future in the closest `ms` milliseconds will be ignored.
9+
In other words, when we call a "debounced" function, it guarantees that all future calls to the function made less than `ms` milliseconds after the previous call will be ignored.
1010

1111
For instance:
1212

@@ -21,4 +21,4 @@ setTimeout( () => f(4), 1100); // runs
2121
setTimeout( () => f(5), 1500); // ignored (less than 1000 ms from the last run)
2222
```
2323

24-
In practice `debounce` is useful for functions that retrieve/update something when we know that nothing new can be done in such a short period of time, so it's better not to waste resources.
24+
In practice `debounce` is useful for functions that retrieve/update something when we know that nothing new can be done in such a short period of time, so it's better not to waste resources.

0 commit comments

Comments
 (0)